# How to separate Dev and QA processes into separate process groups on a Rancher cluster?

**URL:** <https://community.dynatrace.com/t/how-to-separate-dev-and-qa-processes-into-separate-process-groups-on-a-rancher-cluster/19837>\
**Category:** Container platforms\
**Tags:** process-groups, docker\
**Created:** [March 1, 2019, 12:54pm UTC](https://community.dynatrace.com/t/how-to-separate-dev-and-qa-processes-into-separate-process-groups-on-a-rancher-cluster/19837 "2019-03-01T12:54:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![moses\_chacko](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@moses\_chacko](https://community.dynatrace.com/u/moses_chacko)\
**Post date:** [March 1, 2019, 12:54pm UTC](https://community.dynatrace.com/t/how-to-separate-dev-and-qa-processes-into-separate-process-groups-on-a-rancher-cluster/19837/1 "2019-03-01T12:54:22Z")

</div>

I have a rancher cluster where we are running Dev and QA versions of the same image. However the PG detection clubs there two processes running in two different container as one PG. How can I separate them out so that the QA and Dev show as different process groups?

I was hoping someone in the community has already solved this issue and willing to share.

- Moses.

---

<div class="post-metadata">

**Author:** ![Radu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radu/32/23351_2.png) [@Radu](https://community.dynatrace.com/u/Radu)\
**Post date:** [March 1, 2019, 1:08pm UTC](https://community.dynatrace.com/t/how-to-separate-dev-and-qa-processes-into-separate-process-groups-on-a-rancher-cluster/19837/2 "2019-03-01T13:08:01Z")

</div>

Hi Moses,

Process Group detection rules should be what you’re after (Settings \> Process & Containers \> Process group detection). In essence, you capture a detail (environment variable, java system properties, or process properties) that is present in both processes and identifies them and use this detail to split the group based on it.

More details here:

[https://www.dynatrace.com/support/help/shortlink/p…](https://www.dynatrace.com/support/help/shortlink/process-groups#process-group-detection-rules-based-on-process-properties)

Best regards,

Radu

---

<div class="post-metadata">

**Author:** ![moses\_chacko](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@moses\_chacko](https://community.dynatrace.com/u/moses_chacko)\
**Post date:** [March 1, 2019, 1:16pm UTC](https://community.dynatrace.com/t/how-to-separate-dev-and-qa-processes-into-separate-process-groups-on-a-rancher-cluster/19837/3 "2019-03-01T13:16:46Z")

</div>

[@Radu S.](https://answers.dynatrace.com/users/5445/view.html) the only thing different is the container name and the container image version. Is there any option for me to put in regex in the PG detection to split based on the captured value.

---

<div class="post-metadata">

**Author:** ![Radu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radu/32/23351_2.png) [@Radu](https://community.dynatrace.com/u/Radu)\
**Post date:** [March 1, 2019, 2:52pm UTC](https://community.dynatrace.com/t/how-to-separate-dev-and-qa-processes-into-separate-process-groups-on-a-rancher-cluster/19837/4 "2019-03-01T14:52:51Z")

</div>

Container and Container image version are available under ‘process property’ category. You can’t use regex, but you can check if specific text is present (i.e. “contains x”) and then extract strings of it between specific delimiters.

---

<div class="post-metadata">

**Author:** ![moses\_chacko](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@moses\_chacko](https://community.dynatrace.com/u/moses_chacko)\
**Post date:** [March 1, 2019, 4:19pm UTC](https://community.dynatrace.com/t/how-to-separate-dev-and-qa-processes-into-separate-process-groups-on-a-rancher-cluster/19837/5 "2019-03-01T16:19:47Z")

</div>

That did it. Thanks
