# How to rename process group instances

**URL:** <https://community.dynatrace.com/t/how-to-rename-process-group-instances/39019>\
**Category:** Open Q&A\
**Tags:** naming-rules, process-groups, processes\
**Created:** [March 27, 2023, 12:25pm UTC](https://community.dynatrace.com/t/how-to-rename-process-group-instances/39019 "2023-03-27T12:25:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [March 27, 2023, 12:25pm UTC](https://community.dynatrace.com/t/how-to-rename-process-group-instances/39019/1 "2023-03-27T12:25:33Z")

</div>

Hi Folks,

I have a requirement where I want to rename few process group instances.

Dynatrace has detected two process groups with same name (DT created two different Process groups because they have different host group names) and those process groups has same process group instances names.

Something like below,

 ![AK_0-1679919916201.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/19ef70bbfa0b49b85795bc76dab304ca47099c7b.png)

How can I rename those PGIs, or do you have any other suggestions?

Regards,

AK

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [March 27, 2023, 1:01pm UTC](https://community.dynatrace.com/t/how-to-rename-process-group-instances/39019/2 "2023-03-27T13:01:34Z")

</div>

Hi,

You can create&nbsp;[Process group naming rules](https://www.dynatrace.com/support/help/shortlink/process-group-naming)&nbsp;to add some metadata.

Best regards

---

<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:** [March 27, 2023, 1:41pm UTC](https://community.dynatrace.com/t/how-to-rename-process-group-instances/39019/3 "2023-03-27T13:41:47Z")

</div>

Hi, do you have enough metadata on process istance from the autodiscover of Oneagent in order to distinguish single PGIs?

If so you can go for a advance process group detection rule and define the “Process instance extraction”:

 ![y_buccellato_0-1679924263648.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/3/03dff08b896a1815f57f1a299b9e0cb090fa0417.png)

If not you have to insert environment variable at the start of your process and the procedure will vary based on what tech you are using. Here is the link for it:

> **[Define your own process group metadata](https://docs.dynatrace.com/docs/observe/infrastructure-observability/process-groups/configuration/define-your-own-process-group-metadata)**
>
> Configure your own process-related metadata based on the unique needs of your organization or environment.

Cheers

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [March 27, 2023, 2:35pm UTC](https://community.dynatrace.com/t/how-to-rename-process-group-instances/39019/4 "2023-03-27T14:35:31Z")

</div>

[@y\_buccellato](https://community.dynatrace.com/user/4804), yes I have some metadata for differentiation.

Kubernetes full pod name has name like instance-1, instance-2 and so on..

Regards,

AK

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [March 27, 2023, 2:37pm UTC](https://community.dynatrace.com/t/how-to-rename-process-group-instances/39019/5 "2023-03-27T14:37:12Z")

</div>

[@AntonPineiro](https://community.dynatrace.com/user/58682)&nbsp;, I guess, this will rename a process groups not process group instances.

---

<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:** [March 27, 2023, 3:37pm UTC](https://community.dynatrace.com/t/how-to-rename-process-group-instances/39019/6 "2023-03-27T15:37:17Z")

</div>

Then I guess you are near to a solution, if metadata allows you to enrich your process discovery mechanism,  
Try it and let us know, but know that for the rule to be applied you’ll need to restart the process itself.

This will discover a process as a new one, not aggregated to the previous process group you had.

In my case (in my org) the adopted hierarchy is:

process group = namespace

|\_\_\_\_\_\_\_\_\_\_\_\>\> process istance = full pod name

And reflected it via advanced process detection rule in DT. It is always about finding a common pattern 🙂

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [March 27, 2023, 3:42pm UTC](https://community.dynatrace.com/t/how-to-rename-process-group-instances/39019/7 "2023-03-27T15:42:13Z")

</div>

[@y\_buccellato](https://community.dynatrace.com/user/4804)&nbsp;Sure I added a rule however need a restart of processes. Thanks for quick guidance on this.

Regards,

AK
