Datadog 输出插件
此插件将指标写入 Datadog Metrics API,需要一个 apikey,您可以在 网站 上为您自己的帐户获取。
此插件支持 v1 API。
引入于: Telegraf v0.1.6 标签: applications, cloud, datastore 操作系统支持: all
全局配置选项
插件支持其他全局和插件配置设置,用于修改指标、标签和字段,创建别名以及配置插件顺序等任务。更多详情请参阅 CONFIGURATION.md。
配置
# Configuration for DataDog API to send metrics to.
[[outputs.datadog]]
## Datadog API key
apikey = "my-secret-key"
## Connection timeout.
# timeout = "5s"
## Write URL override; useful for debugging.
## This plugin only supports the v1 API currently due to the authentication
## method used.
# url = "https://app.datadoghq.com/api/v1/series"
## Set http_proxy
# use_system_proxy = false
# http_proxy_url = "https://:8888"
## Override the default (none) compression used to send data.
## Supports: "zlib", "none"
# compression = "none"
## When non-zero, converts count metrics submitted by inputs.statsd
## into rate, while dividing the metric value by this number.
## Note that in order for metrics to be submitted simultaenously alongside
## a Datadog agent, rate_interval has to match the interval used by the
## agent - which defaults to 10s
# rate_interval = 0sMetrics
Datadog 指标名称通过 . 字符将 Telegraf 指标名称和字段键连接而成。
字段值被转换为浮点数。无法通过 JSON 发送的字符串和浮点数,即 NaN 和 Inf,将被忽略。
将 rate_interval 设置为非零值将把 count 指标转换为 rate,并将其值除以该间隔后再提交给 Datadog。这允许 Telegraf 与 Datadog 代理一起提交指标,当它们的速率间隔相同时(Datadog 默认为 10s)。请注意,这仅支持通过 inputs.statsd 摄取的指标,因为它依赖于它创建的 metric_type 标签。仅支持 counter 指标,以及 timing 和 histogram 指标的 count 值。
此页面是否有帮助?
感谢您的反馈!
支持和反馈
感谢您成为我们社区的一员!我们欢迎并鼓励您对 Telegraf 和本文档提出反馈和 bug 报告。要获取支持,请使用以下资源
具有年度合同或支持合同的客户可以 联系 InfluxData 支持。