builtin:processavailability)
This feature allows you to monitor if a minimum number of processes matching the specified monitoring rule are running on your host. If there aren't enough processes matching the rule, you receive an alert. If you also enable Process instance snapshots, you receive a detailed report on the activity of the most resource-consuming processes, as well as on the latest activity of the processes matching the rule.
In order to monitor the availability of a certain group of processes, you must first define a monitoring rule. Give your monitoring rule a unique name and add its detection rules to which Dynatrace will match the processes on your host.
For more details, see Process availability
builtin:processavailability
group:processes-and-containers.processes
group:processes-and-containers
HOST
- HostHOST_GROUP
- Host Groupenvironment
GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:processavailability |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:processavailability | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:processavailability |
To execute this request, you need an access token with Read settings (settings.read
) scope. To learn how to obtain and use it, see Tokens and authentication.
enabled
name
operatingSystem
Select the operating systems on which the monitoring rule should be applied.
WINDOWS
LINUX
AIX
minimumProcesses
Specify a minimum number of processes matching the monitoring rule. If it's not satisfied, an alert will open.
rules
Define process detection rules by selecting a process property and a condition. Each monitoring rule can have multiple detection rules associated with it.
metadata
Set of additional key-value properties to be attached to the triggered event.
DetectionCondition
objectruleType
RuleTypeProcess
RuleTypeHost
property
executable
executablePath
commandLine
user
condition
For example, $suffix(svc.py) would detect processes named loyaltysvc.py and paymentssvc.py.
For more details, see Process availability.
hostMetadataCondition
Host custom metadata refers to user-defined key-value pairs that you can assign to hosts monitored by Dynatrace.
By defining custom metadata, you can enrich the monitoring data with context specific to your organization's needs, such as environment names, team ownership, application versions, or any other relevant details.
MetadataItem
objectmetadataKey
Type 'dt.' for key hints.
metadataValue
Type '{' for placeholder hints.
HostMetadataCondition
objectkeyMustExist
When enabled, the condition requires a metadata key to exist and match the constraints; when disabled, the key is optional but must still match the constrains if it is present.
metadataKey
metadataCondition
This string has to match a required format.
$contains(production)
– Matches if production
appears anywhere in the host metadata value.$eq(production)
– Matches if production
matches the host metadata value exactly.$prefix(production)
– Matches if production
matches the prefix of the host metadata value.$suffix(production)
– Matches if production
matches the suffix of the host metadata value.Available logic operations:
$not($eq(production))
– Matches if the host metadata value is different from production
.$and($prefix(production),$suffix(main))
– Matches if host metadata value starts with production
and ends with main
.$or($prefix(production),$suffix(main))
– Matches if host metadata value starts with production
or ends with main
.Brackets ( and ) that are part of the matched property must be escaped with a tilde (~)