# How to enable Python Applications monitoring with OneAgent native support

**URL:** <https://community.dynatrace.com/t/how-to-enable-python-applications-monitoring-with-oneagent-native-support/52420>\
**Category:** Dynatrace Tips\
**Tags:** python, oneagent, settings, data-ingest\
**Created:** [July 9, 2025, 9:24am UTC](https://community.dynatrace.com/t/how-to-enable-python-applications-monitoring-with-oneagent-native-support/52420 "2025-07-09T09:24:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomkrysz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tomkrysz/32/21651_2.png) [@tomkrysz](https://community.dynatrace.com/u/tomkrysz)\
**Post date:** [July 9, 2025, 9:24am UTC](https://community.dynatrace.com/t/how-to-enable-python-applications-monitoring-with-oneagent-native-support/52420/1 "2025-07-09T09:24:52Z")

</div>

To ensure successful instrumentation of your Python application with OneAgent, follow these essential configuration steps:

## 1. Enable Python Monitoring​

Navigate to:

**Settings → Monitoring → Monitored technologies → Python**

 ![tomkrysz_8-1752052416689.png](https://global.discourse-cdn.com/dynatrace/original/2X/2/2a803c1097229cff44e08db281e23b2fbaf1e162.png)

Make sure the “Monitor Python” option is enabled.

## 2. Enable Your Python Framework​

If you’re using a specific framework like FastAPI, ensure it’s enabled under:

**Settings → Preferences → OneAgent Features**

 ![tomkrysz_9-1752052422989.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/d/ddb8ccea496d53bab860c83d8dd80569095f6f43.png)

Look for “Python FastAPI [Opt-In]” and enable it.

## 3. Enable Process Group Monitoring​

Go to:

**Settings → Processes and containers → Process group monitoring**

 ![tomkrysz_10-1752052432060.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/4/d43738b3ad179e63863b99ccc1ac53074f0bcf7d.png)

Ensure automatic deep monitoring is enabled.

## 4. [optional] Set Custom Monitoring Rules (not needed if running in container)​

If your application isn’t automatically detected, define a custom rule:

**Settings → Processes and containers → Custom process monitoring rules**

 ![tomkrysz_11-1752052439107.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/c/7c0e0bc9944ef232ccd4b85b90979be8ef52008d.png)

This helps Dynatrace identify and monitor your Python processes correctly.

## 5. [optional] Special Note for PaaS Installations (Pre-1.315)​

For PaaS setups using OneAgent versions **prior to 1.315** , manual configuration is required.

In the ruxitagentproc.conf file, add:

```auto
[agentType]
python on

[general]
pythonInjection on

```

Example Dockerfile Snippet:​

```auto
# Install Dynatrace OneAgent
COPY --from={environmentid}/linux/oneagent-codemodules:python / /
ENV LD_PRELOAD /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so
ENV DT_AGENTTYPE_OVERRIDE python=on

# Append Python settings to ruxitagentproc.conf
RUN echo -e "[agentType]\npython on\n\n[general]\npythonInjection on" >> /opt/ruxitagentproc.conf

```

### Python version[​](https://dynatrace.stackenterprise.co/articles/20623#heading-python-version)

Please make sure that you are using supported [python version CPython 3.8-3.13](https://docs.dynatrace.com/docs/shortlink/python#supported-python-versions) List of supported python frameworks here: [Technology support — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/section-technology-support#python)

For further informations about python module please see our documentation here: [Python — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/python)

---

<div class="post-metadata">

**Author:** ![kalle\_lahtinen](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kalle\_lahtinen](https://community.dynatrace.com/u/kalle_lahtinen)\
**Post date:** [September 8, 2025, 1:15pm UTC](https://community.dynatrace.com/t/how-to-enable-python-applications-monitoring-with-oneagent-native-support/52420/2 "2025-09-08T13:15:25Z")

</div>

Tip for anyone setting this up - for some reason Dynatrace UI does not report anything in case injection fails, like it does for all other processes. At least in my case I had to dig through the OA logs to find out that injection failed due to unsupported Python version. But there was no feedback in the UI. Normally I’d expect to see a message under the process such as “Activation of deep monitoring was unsuccessful”.

---

<div class="post-metadata">

**Author:** ![tomkrysz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tomkrysz/32/21651_2.png) [@tomkrysz](https://community.dynatrace.com/u/tomkrysz)\
**Post date:** [September 14, 2025, 7:48pm UTC](https://community.dynatrace.com/t/how-to-enable-python-applications-monitoring-with-oneagent-native-support/52420/3 "2025-09-14T19:48:57Z")

</div>

### Supported OS/Python version/frameworks[​](https://dynatrace.stackenterprise.co/articles/20623#heading-supported-ospython-versionframeworks)

Please make sure that you are using supported python version CPython 3.8-3.13 List of supported python frameworks here:&nbsp;[Technology support — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/section-technology-support#python)

Python runtime Versions Platforms

| CPython | 3.8, 3.9, 3.10, 3.11, 3.12, 3.13 | Alpine Linux 64-bit (x86-64, ARM64 (AArch64)), Linux (x86-64, ARM64 (AArch64)) |
| --- | --- | --- |

**Note:** &nbsp;Native Python support on Windows is&nbsp; **not available** &nbsp;in OneAgent. If your application relies on native Python execution, consider alternative deployment strategies or supported environments.
