2015-10-27 02:31:21 +08:00
|
|
|
# Datadog Output Plugin
|
|
|
|
|
|
2020-05-07 02:25:21 +08:00
|
|
|
This plugin writes to the [Datadog Metrics API][metrics] and requires an
|
|
|
|
|
`apikey` which can be obtained [here][apikey] for the account.
|
2015-10-27 02:31:21 +08:00
|
|
|
|
2021-11-25 02:47:33 +08:00
|
|
|
## Configuration
|
2020-05-07 02:25:21 +08:00
|
|
|
|
2022-05-25 22:48:59 +08:00
|
|
|
```toml @sample.conf
|
2022-04-08 05:55:03 +08:00
|
|
|
# Configuration for DataDog API to send metrics to.
|
2020-05-07 02:25:21 +08:00
|
|
|
[[outputs.datadog]]
|
|
|
|
|
## Datadog API key
|
|
|
|
|
apikey = "my-secret-key"
|
|
|
|
|
|
|
|
|
|
## Connection timeout.
|
|
|
|
|
# timeout = "5s"
|
|
|
|
|
|
|
|
|
|
## Write URL override; useful for debugging.
|
|
|
|
|
# url = "https://app.datadoghq.com/api/v1/series"
|
2021-06-02 05:18:31 +08:00
|
|
|
|
2022-06-22 04:50:06 +08:00
|
|
|
## Set http_proxy
|
|
|
|
|
# use_system_proxy = false
|
2021-06-02 05:18:31 +08:00
|
|
|
# http_proxy_url = "http://localhost:8888"
|
2022-01-08 00:38:19 +08:00
|
|
|
|
|
|
|
|
## Override the default (none) compression used to send data.
|
|
|
|
|
## Supports: "zlib", "none"
|
|
|
|
|
# compression = "none"
|
2020-05-07 02:25:21 +08:00
|
|
|
```
|
|
|
|
|
|
2021-11-25 02:47:33 +08:00
|
|
|
## Metrics
|
2020-05-07 02:25:21 +08:00
|
|
|
|
2022-04-21 23:45:47 +08:00
|
|
|
Datadog metric names are formed by joining the Telegraf metric name and the
|
|
|
|
|
field key with a `.` character.
|
2020-05-07 02:25:21 +08:00
|
|
|
|
|
|
|
|
Field values are converted to floating point numbers. Strings and floats that
|
|
|
|
|
cannot be sent over JSON, namely NaN and Inf, are ignored.
|
|
|
|
|
|
2022-04-28 06:04:34 +08:00
|
|
|
We do not send `Rate` types. Counts are sent as `count`, with an
|
|
|
|
|
interval hard-coded to 1. Note that this behavior does *not* play
|
|
|
|
|
super-well if running simultaneously with current Datadog agents; they
|
|
|
|
|
will attempt to change to `Rate` with `interval=10`. We prefer this
|
|
|
|
|
method, however, as it reflects the raw data more accurately.
|
|
|
|
|
|
2020-05-07 02:25:21 +08:00
|
|
|
[metrics]: https://docs.datadoghq.com/api/v1/metrics/#submit-metrics
|
|
|
|
|
[apikey]: https://app.datadoghq.com/account/settings#api
|