cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Process group and command line args

SimonGuillemot
Participant

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)

 

So, it works. I see in the process list : MyBatchProcess instead of "bash"
 
Now I would like to split the process group into single process :
 

 

MyBatchProcess-project1
MyBatchProcess-project2
MyBatchProcess-project3

 

So I add : Advanced detection rules :
- if EXE is bash
- extract from command line args, from "file=/tmp/"
 
SimonGuillemot_0-1648159962932.png

 

But it's not working...
Any ideas ?
 
Other things, not sure that the rules : $contains(-file=) works well. It seems to work like $contains(file=) but I didn't see any indication that the arguments is not a "simple" string
 
 
5 REPLIES 5

fstekelenburg
DynaMight Pro
DynaMight Pro

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...

Kind regards, Frans Stekelenburg                 Certified Dynatrace Associate | measure.works, Dynatrace Partner

SimonGuillemot
Participant

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 !

If somebody hasn't done it already, you could always file it as Product Idea 🙂

Kind regards, Frans Stekelenburg                 Certified Dynatrace Associate | measure.works, Dynatrace Partner

MarwanC
Guide

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.

Featured Posts