24 Mar 2022 10:15 PM
Hi,
I have the following use case, multiple process running with different arguments :
/bin/bash ./testDynatraceLog.sh -help -file=/tmp/projet1
/bin/bash ./testDynatraceLog.sh -help -file=/tmp/projet2
/bin/bash ./testDynatraceLog.sh -help -file=/tmp/projet3
I have in the top consumers, the process group : "bash"
I would like to separate the process are the do not belong to the same project :
I created a "Declarative process grouping" : MyBatchProcess, with the rules :
$contains(file=/tmp)
MyBatchProcess-project1
MyBatchProcess-project2
MyBatchProcess-project3
Solved! Go to Solution.
25 Mar 2022 12:53 PM - edited 25 Mar 2022 01:17 PM
Be careful not to mix things.
Declarative grouping, used in your first part, does not work for processes that have deep monitoring enabled. So fits the purpose you try to achieve.
Advanced process group detection rules, as I think you use in the second part, enable you to adapt the detection logic for deep monitored processes, only. And that does not apply.
You will have to stick to Declarative Process grouping, with its limitations.
If your "projectN" instances are a fixed set, you can add an entry for each.
I however advise to go by the API path then, especially if there are more then 3 entities.
Unfortunately regex and such to match on every possible occurrence is not possible yet.
I was thinking of the DT_CLUSTER_ID environment that you could set, but I think that only works with deep monitored processes.
https://community.dynatrace.com/t5/Dynatrace-Open-Q-A/for-the-expert-DT-CLUSTER-ID-vs-HOSTGROUPS/m-p...
Also have a look at this topic:
https://community.dynatrace.com/t5/Dynatrace-Open-Q-A/Declarative-process-grouping-what-is-the-forma...
30 Mar 2022 03:37 PM
Hi,
Very clear answer. It totally explains all the things.
Is someone aware of a plan to add the feature "extract something" for the process group detection of the declarative process grouping ? Or for automatic tagging
Thanks !
06 Apr 2022 09:59 AM
If somebody hasn't done it already, you could always file it as Product Idea 🙂
06 Apr 2022 10:08 AM
Idea submitted since 2018...
Voted.
04 Apr 2024 08:08 PM
on the same topic, I have many JVMs in my system and we would like to extract the process "Command line args" then parse this and extract the JVM min and max heap and we want to check if the it -agent argument. Finally we want to plot those for each JVM to see what has changed in this JVM after the new deployment if any. Basically to do quality check each time. Any idea if this is possible in DT, the process is already deep monitored and hosts are in full stack. I appreciate any reply.