# Challenge to customize the names of process groups

**URL:** <https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231>\
**Category:** Open Q&A\
**Tags:** process-groups\
**Created:** [January 14, 2021, 10:32am UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231 "2021-01-14T10:32:19Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [January 14, 2021, 10:32am UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/1 "2021-01-14T10:32:19Z")

</div>

Dear All,

I am facing a challenge while renaming processes groups. I tried both manual and naming rules methods but with no success.

In the below screenshot (_the latest screenshot after applying the 2 naming rules, 1 for int web servers and 1 for ext web servers_), you can see that hostnames are different. 2 hosts starting with the **http** (internal web servers) and 4 hosts starting with the **rolh** (external web servers).

If I change the process group name to ext/int web servers’ it applies to all processes groups instead of the relevant host processes.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [January 14, 2021, 11:22am UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/2 "2021-01-14T11:22:16Z")

</div>

Hi,

Probably you need to approach using different host groups , this way Dynatrace will separate in different process groups and from here you can start to apply renaming rules.

Another thing you can try is “Process group detection rules” to separate process groups.

Regards,

Paco

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [January 14, 2021, 11:29am UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/3 "2021-01-14T11:29:28Z")

</div>

Hello @[Paco A.](https://answers.dynatrace.com/users/43065/view.html)

Thank you for your comments.

Please elaborate a little more the point number one, which I totally could not understand.

These are Apache processes, and all are 100% similar. Detection rules are not going to make any difference, in my opinion.

Regards,

Babar

---

<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:** [January 14, 2021, 12:36pm UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/4 "2021-01-14T12:36:33Z")

</div>

[@Babar Q.](https://answers.dynatrace.com/users/5357/view.html)  
Process groups may be hard to finetune if the detection fails in your case. You have two rules:

- detection rules - define processes that would make a process group  
- naming rules - defined naming for detected process groups.

If in a process group you have processes (web servers in your case) from different “clusters”, then you need to use detection rules to separate the process groups.

If you want to rename an existing process group, you can use the naming rules, or manually change the name in the process group setting for a particular one. All process group instances from this process groups will be renamed.

I guess in your case, you need process group detection rule. It depends on your environment, but most likely you can differentiate those either on a process property / command line arguments, etc. If you cannot differentiate those on any property, you can always add a new environments property (DT\_CLUSTER\_ID / DT\_NODE\_ID) to separate it.

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [January 14, 2021, 12:52pm UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/5 "2021-01-14T12:52:25Z")

</div>

Hello [@Július L.](https://answers.dynatrace.com/users/16467/view.html)

Thank you for your comments.

As you can see that properties and command line args are the same for both Ext/Int web servers. There is nothing to use detection process rule to distinguish them (if my understanding is correct).

| ![27893-1610628266090.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/2/72bf65c3ba0657cbdf6169d412508b662159d556.png) | ![27921-1610628305078.png](https://global.discourse-cdn.com/dynatrace/original/2X/3/3a15f792e046f6abeba35851e2bc20e57e3637c8.png) |
| --- | --- |

As I mentioned in my starting comments, manual, or automatic renaming applying to all process groups (external and internal).

Do you think that now I left only with the new environment property (DT\_CLUSTER\_ID / DT\_NODE\_ID) to separate it?

Regards,

Babar

---

<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:** [January 14, 2021, 4:44pm UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/6 "2021-01-14T16:44:03Z")

</div>

Apart from what you can see, there still might be an environment variable (not visible in the process properties) you can use in process group detection rule.

Or you can introduce DT\_CLUSTER\_ID and DT\_NODE\_ID and set the process group name directly. I can see you are using IHS (apache). In a typical deployment, you should put those variables in the envvars file in the IHS directory. (Your case might still be different).

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [January 15, 2021, 7:56am UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/7 "2021-01-15T07:56:15Z")

</div>

Your problem now is that all process seems to be detected under same process group, so any process group naming applies to all the processes. So you need 1st to separate those processes in different process group and once you have it separated you can apply process group naming.

You have 2 different strategies.

- Are those processes running in different servers? - Then using HostGroup+Process group naming would help.

Host groups affect how process groups are detected. When the same process is running in two different host groups, Dynatrace will create one process group for each host group.

- Are those processes different in same way (different Apache path, exe path, whatever …) ? If so, you can use “Process group detection rules” to have different process group. Of course you’re right, if those are 100% identical this approach won’t help.

Hope this help.

regards,

Paco

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [January 15, 2021, 11:17am UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/8 "2021-01-15T11:17:32Z")

</div>

Hello [@Paco Porro A.](https://answers.dynatrace.com/users/43065/view.html)

I used the combination of host groups + process groups but no luck. Yes, they distributed between different host groups.

Everything is the same, including Exec name, Exac path, Command line args, etc.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [January 15, 2021, 11:22am UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/9 "2021-01-15T11:22:49Z")

</div>

So, now you have those Http servers running in hosts with different Host Groups. Did you restarted Apache after splitting hosts in different hosts?

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [January 15, 2021, 6:09pm UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/10 "2021-01-15T18:09:01Z")

</div>

Hello [@Paco Porro A.](https://answers.dynatrace.com/users/43065/view.html)

Apologies in advance if I could not understand your point correctly. Do you mean restart after the logical naming of process groups?

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![Yann\_Buccellato](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Post date:** [January 18, 2021, 7:13pm UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/11 "2021-01-18T19:13:31Z")

</div>

Ei [@Babar Q.](https://answers.dynatrace.com/users/5357/view.html) I think the general picture is this:

0. set up host group on each host: ex. (cluster\_prod\_ext | cluster\_prod\_rolh)

1. restart the ext/rol processes so they can split/regrouped correctly in two process groups (they will still be called the same: “_Standard Detected Name_” )

2. go in the settings and do a process group naming rule per host group (where you will be able to name process group based on host groups)

 ![27899-1610996696185.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a914028a7bfba4c929a1086382c97dcbf3f44b0d.png)

3. the single istances processes will still be called “_Standard Detected Name that you cannot change based on metadata_”: only way you can force a different name on those istances is the DT\_NODE\_ID property.

3.1 if you want to skip step 0, 1, 2 you do the [@Július L.](https://answers.dynatrace.com/users/16467/view.html) solution.  
You set up for example:

DT\_CLUSTER\_ID =cluster\_prod\_ext  
DT\_NODE\_ID=ext\_ws1

DT\_CLUSTER\_ID =cluster\_prod\_ext  
DT\_NODE\_ID=ext\_ws2

and when you are done you restart the process (apache) and you are good to go. _Oneagent \> Dynatrace_ will automatically group and read the new entities based on those data.

Good Luck

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [January 19, 2021, 6:43am UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/12 "2021-01-19T06:43:40Z")

</div>

Hello [@Yann B.](https://answers.dynatrace.com/users/30655/view.html)

Thank you for your comments.

We have tried all the options and now going to perform the following as well which is earlier suggested by [@Július L.](https://answers.dynatrace.com/users/16467/view.html)

DT\_CLUSTER\_ID =cluster\_prod\_ext  
DT\_NODE\_ID=ext\_ws1

DT\_CLUSTER\_ID =cluster\_prod\_ext  
DT\_NODE\_ID=ext\_ws2

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![Lukasz\_Wrona](https://avatars.discourse-cdn.com/v4/letter/l/aca169/32.png) [@Lukasz\_Wrona](https://community.dynatrace.com/u/Lukasz_Wrona)\
**Post date:** [January 19, 2021, 10:53am UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/13 "2021-01-19T10:53:56Z")

</div>

Hi.

If you have successfully split the PG using host groups, you can specify the name for the new groups directly in PG settings. Same will be available if you split the PG using DT\_CLUSTER\_ID, though I would recommend avoiding that approach in favor of Host Groups or Process Group Detection rules (next paragraph).

Note, that as long as you are able to modify the environments of monitored applications, you can than use the Process Group Detection rules, to split the PG based on the new environment variable.

Please note, that you might have to split the PG in order to achieve different naming schemas, as single PG will obviously have one name. To the best of my knowledge, we don’t have advanced naming configuration for individual PGIs - the names are inherited from the PG. However, depending on why different PGI names are needed, it might be possible to achieve similar results without changing the PGI names. If this is for purpose of charting or filtering, you can explore tagging rules (which may be applied to individual PGIs) and than filter based on that - [https://www.dynatrace.com/support/help/how-to-use-dynatrace/tags-and-metadata/](https://www.dynatrace.com/support/help/how-to-use-dynatrace/tags-and-metadata/) .

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [January 19, 2021, 11:55am UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/14 "2021-01-19T11:55:34Z")

</div>

Hello [@Lukasz W.](https://answers.dynatrace.com/users/17205/view.html)

Thank you for your opinion. Just before answering your comments, I wanted to share that these are SUN Solaris hosts and there are also a few limittions for this platform including the host grouping, etc.

_IIf you have successfully split the PG using host groups, you can specify the name for the new groups directly in PG settings. Same will be available if you split the PG using DT\_CLUSTER\_ID, though I would recommend avoiding that approach in favor of Host Groups or Process Group Detection rules (next paragraph)._

- Yes. I did the logical host grouping through tagging e.g. External Hosts and Internal Hosts.

_Note, that as long as you are able to modify the environments of monitored applications, you can than use the Process Group Detection rules, to split the PG based on the new environment variable_.

- There is nothing to distinguish between the External and Internal processes group using the detection rules.

_Please note, that you might have to split the PG in order to achieve different naming schemas, as single PG will obviously have one name. To the best of my knowledge, we don’t have advanced naming configuration for individual PGIs - the names are inherited from the PG. However, depending on why different PGI names are needed, it might be possible to achieve similar results without changing the PGI names. If this is for purpose of charting or filtering, you can explore tagging rules (which may be applied to individual PGIs) and than filter based on that - [https://www.dynatrace.com/support/help/how-to-use-dynatrace/tags-and-metadata/](https://www.dynatrace.com/support/help/how-to-use-dynatrace/tags-and-metadata/?_ga=2.195333739.632920003.1610862613-87121834.1610862613) ._

- The ultimate goal is to represent the External and Internal process groups differently with the proper naming rules. Later on the same can be used for alerting purposes and charting etc as well.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![Lukasz\_Wrona](https://avatars.discourse-cdn.com/v4/letter/l/aca169/32.png) [@Lukasz\_Wrona](https://community.dynatrace.com/u/Lukasz_Wrona)\
**Post date:** [January 19, 2021, 1:09pm UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/15 "2021-01-19T13:09:49Z")

</div>

Focusing on Solaris moves us a bit out of my area, but lets continue from general Dynatrace knowledge.

First, please let me make sure, that we understand the difference between Process Group (PG) and process group instance (PGI). Process Group is a cross-host entity, grouping processes based on multiple criteria - technological, functional, user-configured, etc. Process Group Instance (PGI) is - as a simplification - instance of PG on given host. To the best of my understanding, the screen pasted in opening post is part of PG screen, that lists PGIs in that PG.

Now, a PGI name is constructed based on PG name and some technology specific suffixes. In most cases - most likely including yours - the PGI name will be equal to PG name. This is why in order to achieve different PGI names, the recommendations from Paco, Julius and me were to have them in different PGs, which can be achieved in many ways.

Now, if you are using standalone agents (since this is Solaris), the host group functionality is not available. “logical host grouping through tagging” will not lead to creation of separate PGs. Therefore we must go back to the env-variable based solution. But that requires changing the environment of application, so if you are able to modify the environment of applications, you might as well add something that will allow Process Group Detection rules to split the PG.

Moreover, while I can’t guarantee it will work here, technically the PGI name I have described earlier is PG name extended with Node name. This means, that setting only the DT\_NODE\_ID (without DT\_CLUSTER\_ID) might allow to have different PGI names without splitting the PG. If not, than please use DT\_CLUSTER\_ID to split the PG.

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [January 19, 2021, 1:19pm UTC](https://community.dynatrace.com/t/challenge-to-customize-the-names-of-process-groups/21231/16 "2021-01-19T13:19:32Z")

</div>

Hello [@Lukasz W.](https://answers.dynatrace.com/users/17205/view.html)

Once again thank you for your comments. Yes, in the end, we are going to check the below methodology.

- DT\_HOME=/opt/dynatrace/oneagent
- export DT\_HOME
- LD\_PRELOAD\_64=$DT\_HOME/agent/lib64/liboneagentproc.so
- export LD\_PRELOAD\_64
- LD\_PRELOAD=$DT\_HOME/agent/lib/liboneagentproc.so
- export LD\_PRELOAD
- export DT\_CLUSTER\_ID=Ext\_Web\_Servers
- export DT\_NODE\_ID=process\_no01

Regards,

Babar
