Datadog 指标汇总行为
我通过 Kinesis Firehose 将指标从 CloudWatch 发送到 Datadog。
当我在同一秒发送同一指标的多个值时,Datadog 总是执行平均值。即使我使用汇总求和函数也是如此。
示例
我在 CloudWatch 中快速地一个接一个地发送同一指标的三个值:
aws cloudwatch put-metric-data --namespace example --metric-name test3 --value 1
aws cloudwatch put-metric-data --namespace example --metric-name test3 --value 0
aws cloudwatch put-metric-data --namespace example --metric-name test3 --value 0
在 DataDog 中,该值显示为 0.33(DataDog 预制平均值):
发生了什么事?如何强制 Datadog 执行求和而不是平均值?
I send metrics from CloudWatch to Datadog via Kinesis Firehose.
And when I send multiple values of the same metric at the same second, Datadog always preforms average. Even when I use a rollup-sum function.
Example
I send three values for the same metric quickly one after the other in CloudWatch:
aws cloudwatch put-metric-data --namespace example --metric-name test3 --value 1
aws cloudwatch put-metric-data --namespace example --metric-name test3 --value 0
aws cloudwatch put-metric-data --namespace example --metric-name test3 --value 0
And in DataDog the value appears as 0.33 (DataDog preformed average):
Even with a rollup(sum, 300) the value is still 0.33:
What's going on? How can I force Datadog to preform a sum instead of average?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为原因可能是 Datadog 的最小分辨率是 1 个数据点/分钟(https://docs.datadoghq.com/developers/guide/data-collection-solution-retention/)
您在一分钟内推送了 3 个数据点,Datadog 只能消耗 1 个。基本上,Datadog需要将CW指标转换到自己的存储中,该存储受到1个数据点/分钟的限制
I think the cause might be the minimum resolution for Datadog is 1 datapoint/minute(https://docs.datadoghq.com/developers/guide/data-collection-resolution-retention/)
You pushed 3 data points within one minute, Datadog can only consume ONE. Basically, Datadog needs to convert CW metrics into its own storage, which is limited by 1 data point/minute