常用PromQL学习

1 根据服务、环境选择数据

xxx_total{application="$application", instance="$instance"}

2 同上,支持muti-val(多选)

xxx_total{application="$application", instance=~"$instance"}

3 按xxx_method分类汇总,P95耗时

histogram_quantile(0.95, sum(rate(xxx_bucket{application="$application", instance=~"$instance"}[1m])) by (le, xxx_method))

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *