Mayank Pathak
04/01/2022, 8:51 AMversion: "3.8"
services:
django:
command: "opentelemetry-instrument gunicorn mysite.wsgi -c gunicorn.config.py --workers 2 --threads 2 --reload --bind 0.0.0.0:8000"
image: signoz-sample-django:latest
build:
context: .
environment:
- OTEL_METRICS_EXPORTER=none
- OTEL_SERVICE_NAME=djangoApp
- OTEL_EXPORTER_OTLP_ENDPOINT=host.docker.internal:4317
- DJANGO_SETTINGS_MODULE=mysite.settings
ports:
- 8000:8000
The issue that we are facing is that the django service is not recognized by the signoz setup and we are unavailable to get the service shown in our dashboard. Please help us in identifying any issues if any from our end.
Also when we went through the source code for the sample django app we saw that you people are using a custom middleware polls.middleware.StatsdMetricsMiddleware upon checking the source code for that middleware we found out that you have instantiated a DogStatsd client (link). Can you also help us in telling what this client is used for as we do not have any service running on this port in our host? Is it a miss in the documentation, if yes please provide the correct way going forward with this.Vishal Sharma
04/01/2022, 9:05 AMSrikanth Chekuri
04/01/2022, 10:28 AMMayank Pathak
04/01/2022, 10:30 AMSrikanth Chekuri
04/01/2022, 10:34 AMSrikanth Chekuri
04/01/2022, 11:10 AMMayank Pathak
04/01/2022, 11:46 AMAnkit Nayan
Also when we went through the source code for the sample django app we saw that you people are using a custom middleware polls.middleware.StatsdMetricsMiddleware upon checking the source code for that middleware we found out that you have instantiated a DogStatsd clientI don't think this middleware is needed. It was just to test statsd ingestion to signoz. But let us verify and confirm.