OneAgent version 1.217+
Within large, dynamic environments, the number of processes running on your hosts can become overwhelming. For this reason, Dynatrace automatically monitors important process group types—process groups that are either of a known technology or that consume significant resources.
However, Dynatrace also provides the option of monitoring specific processes that fall into neither of these two categories. This means you can monitor processes of a technology type unknown to Dynatrace that don't consume significant resources.
Declarative grouping is supported for processes that aren't deep-monitored and processes of technologies with dedicated code modules. For more details, refer to Process deep monitoring.
Be cautious when using declarative process grouping, as it may cause compatibility issues with extensions or plugins that depend on Process Group Instance (PGI) names or technologies. Such modifications can lead to malfunctions and loss of data or metrics in monitored processes.
To minimize the risk of compatibility issues when setting up declarative process grouping, you can
Using the declarative process grouping feature, you can add fine-grained rules to match any specific process group. Declarative process grouping is based on the Settings 2.0 framework, so you can create the rules using the Dynatrace web UI or the Settings API - see Example JSON payload for a declarative process group configuration.
To create a process group using the Dynatrace web UI
Go to Settings.
Select Processes and containers > Declarative process grouping.
Select Add monitored technology. The technology is a logical container to group detection rules. It will be visible as the main technology of the process group.
Select Add process group. A process group can comprise a number of individual detection rules. A process group is identified if all of the individual detection rules match.
Go to Process group display name and select a process group name.
Enter the Process group identifier. It's a unique string to let Dynatrace identify the process group.
OneAgent version 1.259+ Select a Report process group option:
Select Add detection rule.
Select the object (process property) against which your detection rule will be tested:
When you add the executable path, it is important to account for the differences between Windows and Linux operating systems. Windows uses backslashes as path separators, while Linux uses forward slashes. There is no automatic normalization of file paths on the OneAgent side. Therefore, it is essential to specify the correct path format for the operating system in use.
Enter a Condition.
In the previous step, you selected the process property that you want to examine (for example, the executable path). In this step, you specify a condition (an operator and a string) that is compared to the selected process property. You can use one of the following operators:
$prefix
= starts with
For example, $prefix(/usr/sbin/keepalived)
is true if the selected process property starts with /usr/sbin/keepalived
.
$suffix
= ends with
For example, $suffix(keepalived)
is true if the selected process property ends with keepalived
.
$eq
= equals; exactly matches
For example, $eq(-d)
is true if the selected process property is -d
.
$contains
= contains; has this substring
For example, $contains(keepalived)
is true if keepalived
occurs anywhere in the selected process property.
The comparators work for each command line parameter separately. For example, a process python my.py -ab -cd -ef
will be matched with a condition $contains(cd)
, $eq(-ab)
, but won't be matched with $suffix(-cd -ef)
because -cd
and -ef
are separate arguments, which are processed separately.
Note that the executable is also part of the command line as its first argument.
All conditions are case insensitive.
optional Add another detection rule.
When you finish defining all the rules, select Save changes.
After saving your changes, Dynatrace will automatically detect and monitor the newly defined custom process group across all hosts—even on hosts that are launched following the definition of the custom process group.
To manage declarative process groups
Go to Declarative process grouping for the level you are configuring.
In the host settings, select Declarative process grouping.
Host group
and select the host group you want to configure.
The Host group property is not displayed when the selected host doesn't belong to any host group.
<group name>
link, where <group name>
is the name of the host group that you want to configure.In the host group settings, select Declarative process grouping.
Go to Settings and select Processes and containers > Declarative process grouping.
The declarative process groups you have defined are displayed in a table under the Add monitored technology button.
The custom process group detection rules are no longer used after introducing declarative process grouping with Dynatrace version 1.218. The existing rules created for custom process grouping are automatically migrated to declarative process grouping rules. However, settings for old project group instances (PGIs) can't be migrated, and you have to update them manually. For details, refer to Process group detection.