Dynatrace APM Plugin
The dynatrace APM plugin allows querying for metrics from Dynatrace.
Agent Configuration Options
apm "dynatrace" {
driver = "dynatrace-apm"
config = {
tenant_url = "https://{your-environment-id}.live.dynatrace.com"
api_token = "dt0s01.XXXXXXXXXXXXXXX"
}
}
tenant_url (string: <required>) - the URL of the Dynatrace tenant to query
api_token (string: <required>) - the access token to use to authenticate with Dynatrace
The Dynatrace plugin can also read its configuration options from environment variables. The accepted keys are DYNATRACE_TENANT_URL and DYNATRACE_API_TOKEN. The agent configuration parameters take precedence over the environment variables.
Policy Configuration Options
check {
source = "dynatrace"
query = "nomad.client.allocs.cpu.total_percent:filter(eq(task,example-task-name)):avg"
}