简体   繁体   中英

Average of a summary metric prometheus

I have a summary metric called rider_filler_processing_message_time .

It gives me percentiles of the latency.

How can I get the average latency including all the percentiles?

I couldn't understand what means but i think this query can solve your problem

sum_over_time(your_metric[5m]) /sum(count_over_time(your_metric[5m]))

I hope to solve your question

我已经使用此查询完成了它:
sum(rate(a_sum[interval])) / sum(rate(a_count[interval]))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM