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
 
 
4 REPLIES 4

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

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 🙂