为什么我只能在这个公式监视器上使用求和?

huangapple go评论53阅读模式
英文:

Why can I only use sum on this formula monitor?

问题

我试图创建一个监控器,在错误率超过阈值时发出警报,使用以下设置。公式中使用的两个指标都是count指标。为什么Datadog只允许使用sum

英文:

I'm trying to create a monitor that alerts when error rate is beyond a threshold using the below setup. Both of the metrics used in the formula are count metrics. Why does datadog only allow using sum?

为什么我只能在这个公式监视器上使用求和?

答案1

得分: 0

这是因为使用了 as_count()

我在Datadog的文档中找到了以下信息:

> 通常情况下,使用 .as_rate() 进行平均时间聚合是合理的,但在处理错误率时建议使用 .as_count() 进行总数聚合。除总和以外的聚合方法不适用于(也不能与).as_count() 一起使用。

英文:

This is due to the usage of as_count().

I found the following in Datadog's documentation:

>In general, avg time aggregation with .as_rate() is reasonable, but sum aggregation with .as_count() is recommended for error rates. Aggregation methods other than sum do not make sense to use with (and cannot be used with) .as_count().

huangapple
  • 本文由 发表于 2023年8月5日 01:50:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/76838163.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定