github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/tools/autoscaling/plugins/apm/datadog.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Autoscaling Plugins: Datadog'
     4  description: The "datadog" APM plugin queries Datadog for metrics.
     5  ---
     6  
     7  # Datadog APM Plugin
     8  
     9  The `datadog` APM plugin allows using [time series][datadog_timeseries] data
    10  from [Datadog][datadog_homepage] to make scaling decisions.
    11  
    12  ## Agent Configuration Options
    13  
    14  ```hcl
    15  apm "datadog" {
    16    driver = "datadog"
    17  
    18    config = {
    19      dd_api_key = "<api key>"
    20      dd_app_key = "<app key>"
    21  
    22      site = "datadoghq.eu"
    23    }
    24  }
    25  ```
    26  
    27  - `dd_api_key` `(string: <required>)` - The Datadog API key to use for
    28    authentication.
    29  
    30  - `dd_app_key` `(string: <required>)` - The Datadog application key to use for
    31    authentication.
    32  
    33  - `site` `(string: "datadoghq.com")` - The Datadog site to connect to.
    34  
    35  The Datadog plugin can also read its configuration options via environment
    36  variables. The accepted keys are `DD_API_KEY` and `DD_APP_KEY`. The agent
    37  configuration parameters take precedence over the environment variables.
    38  
    39  ## Policy Configuration Options
    40  
    41  ```hcl
    42  check {
    43    source = "datadog"
    44    query  = "avg:proxy.backend.response.time{proxy-service:web-app}"
    45    # ...
    46  }
    47  ```
    48  
    49  [datadog_homepage]: https://www.datadoghq.com/
    50  [datadog_timeseries]: https://docs.datadoghq.com/api/v1/metrics/#query-timeseries-points