Understanding histogram_quantile based on rate in Prometheus

后端 未结 3 1015
無奈伤痛
無奈伤痛 2021-02-15 14:50

According to Prometheus documentation in order to have a 95th percentile using histogram metric I can use following query:

histogram_quantile(0.95, sum(rate(http         


        
3条回答
  •  南笙
    南笙 (楼主)
    2021-02-15 15:00

    You have to use reset because counters can be reset, rate automatically considers resets and give you the right count for each second. Just remember that always use rate before using counters.

提交回复
热议问题