Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.38 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.38 KB

Dynatrace APM Plugin

ci release

The dynatrace-apm 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"
}