01 Mar 2019 12:54 PM - last edited on 01 Sep 2022 10:49 AM by MaciejNeumann
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.
Solved! Go to Solution.
01 Mar 2019 01:08 PM
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...
Best regards,
Radu
01 Mar 2019 01:16 PM
@Radu S. 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.
01 Mar 2019 02:52 PM
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.