TLDR fahad is having trouble viewing app and opentelemetry metrics when running their fastapi application via docker-compose. Nocnica suggests that the OTLP_ENDPOINT may be configured incorrectly.
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:*
```docker run -d --name test-1 --net clickhouse-setup_default --env-file env_files/.env -p 3000:3000 test-image```
*Docker compose file:*
command: bash -c "OTEL_RESOURCE_ATTRIBUTES=service.name=testapp OTEL_EXPORTER_OTLP_ENDPOINT= opentelemetry-instrument uvicorn app.main:app --host 0.0.0.0 --port 3000 --reload"
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 :slightly_smiling_face: they'll be awake in a few hours <3
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.
Indexed 1061 threads
Built with ClickHouse as datastore, SigNoz is an open-source APM to help you find issues in your deployed applications & solve them quickly | Knowledge Base powered by Struct.AI