Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如标题所述,avg来自MetricsQLrollup_rate()和rate()in MetricsQL 有什么区别?
avg
rollup_rate()
rate()
从官方文档中我不清楚。
假设我们有一个时间序列,在持续时间上有以下样本d:
d
(v1, t1), (v2, t2), .... (vN, tN)`
然后rate(m[d])attN计算为(vN - v1) / (tN - t1),而avg返回的 from计算为每个采样率, ...,rollup_rate(m[d])的平均值。(v2-v1)/(t2-t1)(vN - vNminus1) / (tN - tNminus1)
rate(m[d])
tN
(vN - v1) / (tN - t1)
rollup_rate(m[d])
(v2-v1)/(t2-t1)
(vN - vNminus1) / (tN - tNminus1)