Summary
To enable monitoring for PaaS OneAgent installations (via build-time injection) for Python-based applications before OneAgent version 1.315, some additional on-the-fly configuration is required.
Problem
By default, Python monitoring is not enabled for PaaS OneAgents before version 1.315.
Resolution
Please add the following lines to your Dockerfile (after those indicated in the documentation):
ENV DT_AGENTTYPE_OVERRIDE python=on
# rxutiagentproc.conf override to append Python entries
RUN echo "[agentType]\npython on\n\n[general]\npythonInjection on" >> /opt/dynatrace/oneagent/agent/conf/ruxitagentproc.conf
and proceed with the build & deployment.
What’s next
Monitoring for Python applications will be enabled by default starting with OneAgent version 1.315.
If you have any problems enabling this, please create a chat or support ticket and provide the following:
- the Dockerfile that was updated
- all logs from /opt/dynatrace/oneagent/logs
- mention this article