<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to enable Python Applications monitoring with OneAgent native support in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/How-to-enable-Python-Applications-monitoring-with-OneAgent/m-p/285562#M1754</link>
    <description>&lt;P&gt;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".&lt;/P&gt;</description>
    <pubDate>Mon, 08 Sep 2025 13:15:25 GMT</pubDate>
    <dc:creator>kalle_lahtinen</dc:creator>
    <dc:date>2025-09-08T13:15:25Z</dc:date>
    <item>
      <title>How to enable Python Applications monitoring with OneAgent native support</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/How-to-enable-Python-Applications-monitoring-with-OneAgent/m-p/281131#M1753</link>
      <description>&lt;P&gt;To ensure successful instrumentation of your Python application with OneAgent, follow these essential configuration steps:&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;1. Enable Python Monitoring&lt;/SPAN&gt;&lt;SPAN&gt;​&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;Navigate to:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Settings → Monitoring → Monitored technologies → Python&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomkrysz_8-1752052416689.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28892i08948FB0B18B8CE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomkrysz_8-1752052416689.png" alt="tomkrysz_8-1752052416689.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Make sure the&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Monitor Python"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;option is enabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;2. Enable Your Python Framework&lt;/SPAN&gt;&lt;SPAN&gt;​&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;If you're using a specific framework like FastAPI, ensure it's enabled under:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Settings → Preferences → OneAgent Features&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomkrysz_9-1752052422989.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28893i3E264F4AB11CAD14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomkrysz_9-1752052422989.png" alt="tomkrysz_9-1752052422989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Look for&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Python FastAPI [Opt-In]"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;and enable it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;3. Enable Process Group Monitoring&lt;/SPAN&gt;&lt;SPAN&gt;​&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;Go to:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Settings → Processes and containers → Process group monitoring&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomkrysz_10-1752052432060.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28894i816ABA9E21928476/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomkrysz_10-1752052432060.png" alt="tomkrysz_10-1752052432060.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ensure automatic deep monitoring is enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;4. [optional] Set Custom Monitoring Rules (not needed if running in container)&lt;/SPAN&gt;&lt;SPAN&gt;​&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;If your application isn't automatically detected, define a custom rule:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Settings → Processes and containers → Custom process monitoring rules&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomkrysz_11-1752052439107.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28895iC00F00D4AD342899/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomkrysz_11-1752052439107.png" alt="tomkrysz_11-1752052439107.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This helps Dynatrace identify and monitor your Python processes correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;5. [optional] Special Note for PaaS Installations (Pre-1.315)&lt;/SPAN&gt;&lt;SPAN&gt;​&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;For PaaS setups using OneAgent versions&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;prior to 1.315&lt;/STRONG&gt;&lt;SPAN&gt;, manual configuration is required.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ruxitagentproc.conf&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file, add:&lt;/P&gt;&lt;PRE&gt;[agentType]&lt;BR /&gt;python on&lt;BR /&gt;&lt;BR /&gt;[general]&lt;BR /&gt;pythonInjection on&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Example Dockerfile Snippet:&lt;/SPAN&gt;&lt;SPAN&gt;​&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;#&amp;nbsp;Install&amp;nbsp;Dynatrace&amp;nbsp;OneAgent&lt;BR /&gt;COPY&amp;nbsp;--from=tenant.live.dynatrace.com/linux/oneagent-codemodules:python&amp;nbsp;/&amp;nbsp;/&lt;BR /&gt;ENV&amp;nbsp;LD_PRELOAD&amp;nbsp;/opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so&lt;BR /&gt;ENV&amp;nbsp;DT_AGENTTYPE_OVERRIDE&amp;nbsp;python=on&lt;BR /&gt;&lt;BR /&gt;#&amp;nbsp;Append&amp;nbsp;Python&amp;nbsp;settings&amp;nbsp;to&amp;nbsp;ruxitagentproc.conf&lt;BR /&gt;RUN&amp;nbsp;echo&amp;nbsp;-e&amp;nbsp;"[agentType]\npython&amp;nbsp;on\n\n[general]\npythonInjection&amp;nbsp;on"&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/opt/ruxitagentproc.conf&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3 id="heading-python-version"&gt;Python version&lt;A class="" href="https://dynatrace.stackenterprise.co/articles/20623#heading-python-version" target="_blank" rel="noopener"&gt;​&lt;/A&gt;&lt;/H3&gt;&lt;P&gt;Please make sure that you are using supported &lt;A href="https://docs.dynatrace.com/docs/shortlink/python#supported-python-versions" target="_blank"&gt;python version CPython 3.8-3.13&lt;/A&gt; List of supported python frameworks here:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/section-technology-support#python" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.dynatrace.com/docs/shortlink/section-technology-support#python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For further informations about python module please see our documentation here:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/python" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/python&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 09:24:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/How-to-enable-Python-Applications-monitoring-with-OneAgent/m-p/281131#M1753</guid>
      <dc:creator>tomkrysz</dc:creator>
      <dc:date>2025-07-09T09:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable Python Applications monitoring with OneAgent native support</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/How-to-enable-Python-Applications-monitoring-with-OneAgent/m-p/285562#M1754</link>
      <description>&lt;P&gt;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".&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 13:15:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/How-to-enable-Python-Applications-monitoring-with-OneAgent/m-p/285562#M1754</guid>
      <dc:creator>kalle_lahtinen</dc:creator>
      <dc:date>2025-09-08T13:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable Python Applications monitoring with OneAgent native support</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/How-to-enable-Python-Applications-monitoring-with-OneAgent/m-p/285937#M1758</link>
      <description>&lt;H3 id="heading-supported-ospython-versionframeworks"&gt;Supported OS/Python version/frameworks&lt;A class="" href="https://dynatrace.stackenterprise.co/articles/20623#heading-supported-ospython-versionframeworks" target="_blank" rel="noopener"&gt;​&lt;/A&gt;&lt;/H3&gt;&lt;P&gt;Please make sure that you are using supported python version CPython 3.8-3.13 List of supported python frameworks here:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/section-technology-support#python" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.dynatrace.com/docs/shortlink/section-technology-support#python&lt;/A&gt;&lt;/P&gt;&lt;DIV class=""&gt;Python runtime Versions Platforms &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;CPython&lt;/TD&gt;&lt;TD&gt;3.8, 3.9, 3.10, 3.11, 3.12, 3.13&lt;/TD&gt;&lt;TD&gt;Alpine Linux 64-bit (x86-64, ARM64 (AArch64)), Linux (x86-64, ARM64 (AArch64))&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Native Python support on Windows is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;not available&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in OneAgent. If your application relies on native Python execution, consider alternative deployment strategies or supported environments.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 19:48:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/How-to-enable-Python-Applications-monitoring-with-OneAgent/m-p/285937#M1758</guid>
      <dc:creator>tomkrysz</dc:creator>
      <dc:date>2025-09-14T19:48:57Z</dc:date>
    </item>
  </channel>
</rss>

