27 May 2025 09:50 AM - edited 03 Jun 2025 09:49 AM
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.
By default, Python monitoring is not enabled for PaaS OneAgents before version 1.315.
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.
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: