<?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: Process group detection rule in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/281538#M37071</link>
    <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/90225"&gt;@deni&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;&amp;nbsp;any view on above?&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jul 2025 06:48:48 GMT</pubDate>
    <dc:creator>AK</dc:creator>
    <dc:date>2025-07-15T06:48:48Z</dc:date>
    <item>
      <title>Process group detection rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/280874#M36971</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello Folks,&lt;/P&gt;
&lt;P&gt;Need some help in configuring process group detection rule, use case is:&lt;/P&gt;
&lt;P&gt;Multiple python processes are running across two hosts. We&amp;nbsp;need Dynatrace identify each as a individual process group.&lt;/P&gt;
&lt;P&gt;Default process group detection rule detecting it as single process group and command line argument shown also vary randomly for detected process group&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Host1 will be having:&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;python service.py -m PROCESS1 -i 0123
python service.py -m PROCESS2 -i 4567
python service.py -m PROCESS3 -i 6789&lt;/LI-CODE&gt;
&lt;P&gt;Same set of processes are present on other host too.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Host2:&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;python service.py -m PROCESS1 -i 0123
python service.py -m PROCESS2 -i 4567
python service.py -m PROCESS3 -i 6789&lt;/LI-CODE&gt;
&lt;P&gt;I'm expecting Dynatrace to create process group like below,&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PROCESS1 (ProcessGroup1)
- PROCESS1 (Process Group Instance from Host1)
- PROCESS1 (Process Group Instance from Host2)
PROCESS2 (ProcessGroup2)
- PROCESS2 (Process Group Instance from Host1)
- PROCESS2 (Process Group Instance from Host2)
PROCESS3 (ProcessGroup3)
- PROCESS3 (Process Group Instance from Host1)
- PROCESS3 (Process Group Instance from Host2)&lt;/LI-CODE&gt;
&lt;P&gt;How can we achieve this? Kindly help.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;AK&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 08:43:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/280874#M36971</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2025-07-07T08:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Process group detection rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/280882#M36978</link>
      <description>&lt;P&gt;First of all, both hosts must be in the same host group.&lt;BR /&gt;The most straightforward solution is to use a &lt;A href="https://docs.dynatrace.com/docs/shortlink/process-groups" target="_blank"&gt;Simple detection rule&lt;/A&gt;&amp;nbsp;and utilise two environment variables for determining the process group and instance id. You can use your own ones (preferred) or the DT_CLUSTER_ID and DT_NODE_ID.&lt;BR /&gt;If you can't use environment variables, you can define advanced detection rule too based on the -m parameter.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2025 22:01:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/280882#M36978</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-07-04T22:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Process group detection rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/280887#M36979</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/2080"&gt;@AK&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I'm fighting a similar problem and succeeded with only with 2 python files on two host connected with a single process group. How this works (at least on my side):&lt;/P&gt;&lt;P&gt;1. My two host has not assigned to a hosts group (e.g. they are not in different hosts groups)&lt;/P&gt;&lt;P&gt;2. Use command: setproctitle.setproctitle("test_process") in both processes (before that Dynatrace detected their names randomly and putted them in different process groups - e.g. pytho3 on one of the hosts, filename on the other ...).&lt;/P&gt;&lt;P&gt;3. I don't need detection rule, because the process were automatically detected by Dynatrace - e.g. &lt;A href="https://docs.dynatrace.com/docs/observe/infrastructure-monitoring/process-groups/basic-concepts/which-are-the-most-important-processes" target="_blank"&gt;https://docs.dynatrace.com/docs/observe/infrastructure-monitoring/process-groups/basic-concepts/which-are-the-most-important-processes&lt;/A&gt; - in my case I have open port and network traffic.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gencheva_0-1751695813260.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28838iC3211A98C7C19483/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gencheva_0-1751695813260.png" alt="gencheva_0-1751695813260.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gencheva_1-1751695833197.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28839i280171A91D64F317/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gencheva_1-1751695833197.png" alt="gencheva_1-1751695833197.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards, Deni&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jul 2025 06:11:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/280887#M36979</guid>
      <dc:creator>deni</dc:creator>
      <dc:date>2025-07-05T06:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Process group detection rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/281440#M37053</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;&amp;nbsp;thank you for the response. This process is not deep monitored hence declarative process group worked for me.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jul 2025 16:34:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/281440#M37053</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2025-07-12T16:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Process group detection rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/281442#M37054</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/90225"&gt;@deni&lt;/a&gt;&amp;nbsp;thank you for the response.&lt;BR /&gt;As per the rule it is working as expected however, for detected process group (&lt;STRONG&gt;PYTHON-PROCESS1&lt;/STRONG&gt;), the command line argument properties shows below command line argument:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/bin/bash /somedirectory/servicestatus/start-service.sh -m PROCESS1 -i 0123&lt;/LI-CODE&gt;&lt;P&gt;I'm expecting to see below command line argument:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;python service.py -m PROCESS1 -i 0123&lt;/LI-CODE&gt;&lt;P&gt;Following is the rule applied for&amp;nbsp;&lt;STRONG&gt;PYTHON-PROCESS1 &lt;/STRONG&gt;process group:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Command line argument $contains(PROCESS1)&lt;/LI-CODE&gt;&lt;P&gt;I tried adding rule with full command line argument but it didn't worked.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Command line argument $contains(python service.py -m PROCESS1 -i 0123)&lt;/LI-CODE&gt;&lt;P&gt;I think, we can't add full command line argument in rule.&lt;BR /&gt;Dynatrace treats part of argument as&lt;SPAN&gt;&amp;nbsp;separate arguments, which are processed separately&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AK_0-1752342408806.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28987iAA57855DA75580AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AK_0-1752342408806.png" alt="AK_0-1752342408806.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, apart from&amp;nbsp;&lt;STRONG&gt;PYTHON-PROCESS1&lt;/STRONG&gt;,&amp;nbsp;&lt;STRONG&gt;PYTHON-PROCESS2 &lt;/STRONG&gt;strangely there is &lt;U&gt;onemore&lt;/U&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;process group with the name &lt;STRONG&gt;service.py&amp;nbsp;&lt;/STRONG&gt;reported in Dynatrace. For which, the command line argument is appropriate:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;python service.py -m PROCESS1 -i 0123&lt;/LI-CODE&gt;&lt;P&gt;Whenever we perform a restart of any process, the command line argument for this PG (service.py) changes to that process.&amp;nbsp;For example:- if restart &lt;U&gt;process3&lt;/U&gt; is performed, then command line argument shown for service.py would be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;python service.py -m PROCESS3 -i 6789&lt;/LI-CODE&gt;&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/90225"&gt;@deni&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;&amp;nbsp;any suggestion how we can correct this detection rule? and also stops reporting of service.py process group?&lt;BR /&gt;Note: All these configurations need’s to be done to achieve process group availability monitoring of those processes.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;AK&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2025 20:53:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/281442#M37054</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2025-07-13T20:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Process group detection rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/281538#M37071</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/90225"&gt;@deni&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;&amp;nbsp;any view on above?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 06:48:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/281538#M37071</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2025-07-15T06:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Process group detection rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/281567#M37078</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/2080"&gt;@AK&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I’m not sure I fully understand the problem. I have a few questions to clarify things (let’s focus on &lt;STRONG&gt;process 1&lt;/STRONG&gt; as an example—it should be the same for the others):&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;1. Does Dynatrace detect your process 1 on both hosts without any additional configuration&lt;/STRONG&gt; (even if they are in different process groups)?&lt;BR /&gt;As far as I understand, it’s &lt;STRONG&gt;not necessary for a process to be deep monitored&lt;/STRONG&gt;. It can still be detected if &lt;STRONG&gt;at least 3 out of the last 5 one-minute intervals&lt;/STRONG&gt; meet one of these conditions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Avg(CPU) &amp;gt; 5%&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Max(Memory) &amp;gt; 5%&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Network Traffic &amp;gt; 5%&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Or if the process has been defined as important (for example, by enabling Log Monitoring for it).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;2. If the process is not detected by Dynatrace (e.g., it’s not considered an important process), what do you use to make Dynatrace detect it?&lt;/STRONG&gt;&lt;BR /&gt;Do you use a &lt;STRONG&gt;Simple Detection Rule&lt;/STRONG&gt;?&lt;BR /&gt;If yes, could you please share the configuration?&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;3. Why do you need “Declarative Process Grouping”?&lt;/STRONG&gt;&lt;BR /&gt;Do you see both processes, but they appear in different groups?&lt;BR /&gt;If yes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;What are their group names in Dynatrace?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;What additional information does Dynatrace provide about each group?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;Regards,&lt;BR /&gt;Deni&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 10:32:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/281567#M37078</guid>
      <dc:creator>deni</dc:creator>
      <dc:date>2025-07-15T10:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Process group detection rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/282336#M37173</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/90225"&gt;@deni&lt;/a&gt;&amp;nbsp;thanks for the useful insights and apologies for not responding to your follow-up question.&amp;nbsp;However, support helped to depart this challenge for me.&lt;BR /&gt;Creating declarative processing rule for each parameter like below worked.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$eq(python)
$eq(service.py)
$eq(-m)
$eq(PROCESS1)
$eq(-i)
$eq(0123)&lt;/LI-CODE&gt;&lt;P&gt;Note: Order of rule doesn't matter&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;AK&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 19:33:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/282336#M37173</guid>
      <dc:creator>AK</dc:creator>
      <dc:date>2025-07-25T19:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Process group detection rule</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/282352#M37179</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/2080"&gt;@AK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm happy that you have the solution,&amp;nbsp; but can you please answer my questions? Yes, I'm trying to help, but also learning &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; And I'm still wondering is this the only one solution? Is this solution optimal? - I'm asking myself questions like this, so I will appreciate if you find some time for a little bit more details about the usecase.&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;Regards, Deni&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jul 2025 21:59:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Process-group-detection-rule/m-p/282352#M37179</guid>
      <dc:creator>deni</dc:creator>
      <dc:date>2025-07-26T21:59:36Z</dc:date>
    </item>
  </channel>
</rss>

