nomad-autoscaler-dynatrace

command module
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

README

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"
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL