Hi Team, I have setup signoz in AWS using docker. ...
# support
a
Hi Team, I have setup signoz in AWS using docker. I have configured the OTel in my django application, although I can see OTel logs, I cant see the same on signoz dashboard. I have also tried troubleshooting endpoint and it was successful, but there are no traces/data on the dashboard (Screenshots for reference) What am I missing here?
s
Were you able to see the traces with
console
exporter?
a
@Srikanth Chekuri - I can see output on console similar to this:
s
What exporter are you using to send data to SigNoz?
a
This is the command I am using:
Copy code
OTEL_RESOURCE_ATTRIBUTES=service.name=hancock OTEL_EXPORTER_OTLP_ENDPOINT="http://<MySignozIP>:4317"  opentelemetry-instrument --traces_exporter otlp_proto_http,console python manage.py runserver --noreload
s
If you are using HTTP exporter the endpoint should be http//&lt;host ip&gt;4318
a
Tried with 4318. Troubleshoot endpoint fails now:
But no change on the dashboard.
s
I believe troubleshoot only works with 4317 using gRPC exporter to ensure the connectivity. But what exporter you setup in the application can be very different. Did you try with 4318 for
OTEL_EXPORTER_OTLP_ENDPOINT
? Are there any failure warning logs?
a
Understood. I can see the traces on the dashboard now. Thanks for the help
@Srikanth Chekuri - For django application with uWSGI server, where should we configure @post_fork decorator?
s
https://github.com/open-telemetry/opentelemetry-python/tree/main/docs/examples/fork-process-model/flask-uwsgi - this uses flask but the idea is same. It is usually put in settings.py
a
@Srikanth Chekuri - I was trying to setup with Django + uWSGI with this command and the postfork decorator as mentioned in the example provided:
Copy code
OTEL_RESOURCE_ATTRIBUTES=service.name=hancock_staging OTEL_EXPORTER_OTLP_ENDPOINT="<http://MySignozIP:4318>"  opentelemetry-instrument --traces_exporter otlp_proto_http /home/hancock/env/bin/uwsgi --ini /home/hancock/config/api_uwsgi.ini
But I get this error:
Copy code
File "/home/hancock/env/lib64/python3.7/site-packages/uwsgidecorators.py", line 10, in <module>
    import uwsgi
ModuleNotFoundError: No module named 'uwsgi'
Can you help?
@Srikanth Chekuri - Any help?
s
This is a generic python error. Please check the if the package is installed and part of python path.
a
@Srikanth Chekuri - It is not a generic python error. It happens only when I use postfork decorator which is needed for uWSGI server. Yes, package is installed & part of python path.
s
Which is still a regular python error. I don’t see anything specific to OTEL I can help you with.