dynatrace-oss / OneAgent-SDK-Python-AutoInstrumentation

autodynatrace, a python library that implements automatic instrumentation using the OneAgent SDK for Python
Other
62 stars 28 forks source link

Agent not found for Django application #88

Closed l3risch closed 1 year ago

l3risch commented 1 year ago

We use autodynatrace to instrument our Django application. We followed the readme and tried the semi-auto instrumentation (option 2) as well as the instrumentation without code changes (option 1). These are the logs we are getting:

Bildschirmfoto 2023-09-05 um 11 40 29

Bildschirmfoto 2023-09-04 um 14 03 11

We are using autodynatrace 1.1.1 and agent version 1.7.1 on a Django app which is running in a docker container.

Are we missing any step?

Best regards,

Christian

dlopes7 commented 1 year ago

Do you have the OneAgent instrumenting that Docker container?

AgentState: 3 means the OneAgent was not found anywhere.

Please make sure the OA is installed (or the container is instrumented via build time or runtime)

And follow the troubleshooting steps here

Info about build time injection here

If using build time injection make sure to include oneagent-codemodules:sdk

l3risch commented 1 year ago

Thank you so much for your input. I missed the step where I set up OneAgent as a Docker Container following this link: https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-container-platforms/docker/set-up-dynatrace-oneagent-as-docker-container. Now I am also able to see the 'Service' view of my Django project.