普罗米修斯如何计算过去24小时的平均值?

时间:2019-05-24 02:44:33

标签: prometheus promql

“ vip_front_onload_duration [24h]指定间隔”有3分,我想计算这3分的总和。

avg_over_time(vip_front_onload_duration {pageid =〜“ pay.xxx.com/pay.html”} [24h])

结果是

{instance="xxx:7002",job="vip_monitor",pageid="pay.xxx.com/pay.html",quantile="0.5"}    2524.586342592599
{instance="xxx:7002",job="vip_monitor",pageid="pay.xxx.com/pay.html",quantile="0.9"}    11592.012384259262
{instance="xxx:7002",job="vip_monitor",pageid="pay.xxx.com/pay.html",quantile="0.99"}   77310.7171296294

此表达式Avg_over_time(vip_front_onload_duration {pageid =〜“ pay.xxx.com/pay.html”} [24h])分别计算'quantine ='0.5 | 0.9 | 0.99''的平均值,我想获取这三个指标的总和。

0 个答案:

没有答案