Fixing FastAPI App Not Showing in Docker-compose Issue
TLDR fahad needed assistance when their FastAPI application wasn't showing in docker-compose. Srikanth suggested removing "--reload" from the command, which resolved the issue.
Jul 04, 2023 (5 months ago)
fahad
05:43 PMwhen 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 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:
version: "3"
services:
web:
restart: unless-stopped
build: .
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"
volumes:
- .:/code
ports:
- "3000:3000"
env_file:
- ./env_files/.env
networks:
- clickhouse-setup_default
networks:
clickhouse-setup_default:
external: true
Jul 05, 2023 (5 months ago)
Srikanth
01:49 AMOTEL_EXPORTER_OTLP_ENDPOINT=
>
This is probably incorrect. Please make sure n/w stuff is correct.
fahad
12:23 PMif we run signoz in via docker-compose then
>
OTEL_EXPORTER_OTLP_ENDPOINT=
Srikanth
01:19 PMJul 06, 2023 (5 months ago)
fahad
08:10 AMSigNoz Community
Indexed 1023 threads (61% resolved)
Similar Threads
Troubleshooting SigNoz Auto-Instrumentation Configuration
igor is having trouble configuring auto-instrumentation for Java applications using SigNoz, with traces not appearing in the SigNoz UI. Prashant advises to check logs of the otel sidecar, use service name for endpoint, verify supported libraries, and test with telemetrygen. However, the issue still persists.
Instrumenting Flask App with Opentelemetry and SigNoz Issues
John faced issues with instrumenting Flask app, but with Srikanth's help resolved the errors. vishal-signoz offered further support through a call.
Headers in Monitoring HTTP Endpoints & Otel-Collector Error
Rohit asks about providing headers in monitoring HTTP endpoints and reports errors in otel-collector logs. Srikanth mentions headers are unsupported and requires more investigation for errors.