The dynatrace-apm
APM plugin allows querying for metrics from Dynatrace.
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 queryapi_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.
check {
source = "dynatrace"
query = "nomad.client.allocs.cpu.total_percent:filter(eq(task,example-task-name)):avg"
}