Hi guys, when I run my fastapi application via doc...
# general
f
Hi guys, when I run my fastapi application via docker run command, the signoz is able to show the app and opentelemetry metrics but when I run it via docker-compose the application doesn't appear there. can anyone help me in this? Docker run command:
Copy code
docker run -d --name test-1 --net clickhouse-setup_default --env-file env_files/.env -p 3000:3000 test-image
Docker compose file:
Copy code
version: "3"

services:
  web:
    restart: unless-stopped
    build: .
    command: bash -c "OTEL_RESOURCE_ATTRIBUTES=service.name=testapp OTEL_EXPORTER_OTLP_ENDPOINT=<http://clickhouse-setup_otel-collector_1:4317> opentelemetry-instrument uvicorn app.main:app --host 0.0.0.0 --port 3000 --reload"

    volumes:
      - .:/code
    ports:
      - "3000:3000"
    env_file:
      - ./env_files/.env
    networks:
      - clickhouse-setup_default
networks:
    clickhouse-setup_default:
      external: true
n
that OTLP_ENDPOINT doesn't look right to me, explain to me how that's supposed to resolve, why don't we just feed it the IP of our endpoint? Are we getting anything logged at startup? The other team will likely have more idea, it's only week 3 for me ­čÖé they'll be awake in a few hours <3
f
since signoz service is running in another docker-compose so I provided the container name instead of IP. Its working if I run with docker run command but not the case with docker-compose.