https://signoz.io logo
#support
Title
# support
a

Akhilesh Bussa

10/17/2022, 1:05 PM
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

Srikanth Chekuri

10/17/2022, 1:07 PM
Were you able to see the traces with
console
exporter?
a

Akhilesh Bussa

10/17/2022, 1:16 PM
@Srikanth Chekuri - I can see output on console similar to this:
s

Srikanth Chekuri

10/17/2022, 1:18 PM
What exporter are you using to send data to SigNoz?
a

Akhilesh Bussa

10/17/2022, 1:18 PM
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

Srikanth Chekuri

10/17/2022, 1:19 PM
If you are using HTTP exporter the endpoint should be http//&lt;host ip&gt;4318
a

Akhilesh Bussa

10/17/2022, 1:24 PM
Tried with 4318. Troubleshoot endpoint fails now:
But no change on the dashboard.
s

Srikanth Chekuri

10/17/2022, 1:27 PM
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

Akhilesh Bussa

10/17/2022, 1:28 PM
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

Srikanth Chekuri

10/17/2022, 1:48 PM
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

Akhilesh Bussa

10/17/2022, 3:28 PM
@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

Srikanth Chekuri

10/18/2022, 6:50 AM
This is a generic python error. Please check the if the package is installed and part of python path.
a

Akhilesh Bussa

10/18/2022, 6:55 AM
@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

Srikanth Chekuri

10/18/2022, 6:57 AM
Which is still a regular python error. I don’t see anything specific to OTEL I can help you with.
5 Views