# Splitting process group for non-deeply monitor processes

**URL:** <https://community.dynatrace.com/t/splitting-process-group-for-non-deeply-monitor-processes/48135>\
**Category:** Open Q&A\
**Tags:** tagging, process-groups, processes\
**Created:** [October 3, 2024, 9:52pm UTC](https://community.dynatrace.com/t/splitting-process-group-for-non-deeply-monitor-processes/48135 "2024-10-03T21:52:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kherring](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kherring](https://community.dynatrace.com/u/kherring)\
**Post date:** [October 3, 2024, 9:52pm UTC](https://community.dynatrace.com/t/splitting-process-group-for-non-deeply-monitor-processes/48135/1 "2024-10-03T21:52:45Z")

</div>

I have an executable that uses technology that is _ **not** _ deeply monitored (unsupported technology).&nbsp; This program can have hundreds of instances on each host, and would be differentiated by one of it’s parameters.

I cannot figure out how to split this process by that parameter.&nbsp; The best I’ve seen is to use Declarative process grouping, but this requires a detection rule for each specific parameter that is possible.&nbsp; A few hundred in our case and difficult to keep updated.&nbsp; This results in an onerous amount of maintenance.&nbsp; It doesn’t allow for naming/splitting process groups by any detected CLI args, only the explicitly configured name provided in the Dyntrace config UI.

I’ve tried to use `DT_NODE_ID` and `DT_CLUSTER_ID` without luck.&nbsp; I can successfully tag the process group with `DT_CUSTOM_PROP`, but this gets overwritten by whichever process started last and does not help with splitting.&nbsp; That is, it provides the tag, but that tag is later overwritten when another process joins the group.&nbsp; It does tell me that Dynatrace can see 👀 the environment variables, and it just doesn’t care to use them for process grouping.

## Example

Processes:

\*&nbsp;/path/to/exe -L program1  
\* /path/to/exe -L program2 -s 1234  
\* /path/to/exe -L program2 -s abcd  
\* /path/to/exe -L program3

Process Group Found:

\* `/path/to/exe`- just the one is created

Process Groups Expected:

\* `program1`  
\* `program2`  
\* `program3`

How does one automatically split this process group by either the command line parameters or environment variables, or any other option?&nbsp; Is splitting process groups limited to deep monitored processes only?&nbsp; Any help would be greatly appreciated as I feel like I’m going crazy here trying any and all config permutations.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 7, 2024, 6:21am UTC](https://community.dynatrace.com/t/splitting-process-group-for-non-deeply-monitor-processes/48135/2 "2024-10-07T06:21:48Z")

</div>

[@kherring](https://community.dynatrace.com/user/67615)&nbsp; in your case (non-deep monitored processes) you need to use&nbsp;[Declarative Process Grouping.](https://docs.dynatrace.com/docs/shortlink/process-groups#declare)

---

<div class="post-metadata">

**Author:** ![kherring](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kherring](https://community.dynatrace.com/u/kherring)\
**Post date:** [October 7, 2024, 1:40pm UTC](https://community.dynatrace.com/t/splitting-process-group-for-non-deeply-monitor-processes/48135/3 "2024-10-07T13:40:16Z")

</div>

Just to make sure I understand the limitation - this means there is no way to detect a process group name from a command line parameter or environment variable and each my be explicitly defined, correct?&nbsp; That means in our case we need to define 300+ groups and have a maintenance process to add/delete them as they change.

Assuming this is the case it’s quite a burden that I wouldn’t have expected to run into.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 7, 2024, 2:14pm UTC](https://community.dynatrace.com/t/splitting-process-group-for-non-deeply-monitor-processes/48135/4 "2024-10-07T14:14:04Z")

</div>

Hello&nbsp;[@kherring](https://community.dynatrace.com/user/67615)

As advised by&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)

You can create declarative process grouping through the attached steps via the UI.

Manage \> Settings \>&nbsp;Processes and containers \> Declarative process grouping.

 ![2024-10-07_17h54_04.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/8/98f5f51232c78caa8345937f15a3c4255c78587e.png)

 ![2024-10-07_17h56_55.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/1/11db91229ae0023d06e92375c9f5073641646383.png)

 ![2024-10-07_18h01_20.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/b4c5113436259591fe7a669238e6977e230ec6f4.png)

 ![2024-10-07_18h03_26.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/c/5c62881767bbff1d94820acc787e9fe4f6611303.png)

 ![2024-10-07_18h08_15.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/e/fee35388d993a200a75030694cdd440c5218c814.png)

After configuring detection rules, create the required tagging rules that reflect the PG setup.

KR,

Peter.

---

<div class="post-metadata">

**Author:** ![gilles\_tabary](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gilles\_tabary](https://community.dynatrace.com/u/gilles_tabary)\
**Post date:** [June 17, 2025, 8:37am UTC](https://community.dynatrace.com/t/splitting-process-group-for-non-deeply-monitor-processes/48135/5 "2025-06-17T08:37:19Z")

</div>

Hello.

The original question was not answered.&nbsp;“Manage \> Settings \>&nbsp;Processes and containers \> Declarative process grouping.” is not a solution for it does not provide fine enough process fine selection in my case. Independently of the other problem due to the multiplication of rules. Any help would be appreciated.
