Prometheus使用
Grafana使用
prometheus主要产生 counter, gauge, histogram, summary几种类型的指标检测结果.
counter, gauge的可视化比较简单, 选中对应的指标, 作图即可. 可能会rate求下速率, 或者sum/svg等聚合一下.
histogram, 和 summary用于体现指标的分布情况.
比如, 查看延迟在0.1s, 0.2s, 0.5s, 1s,+Inf 各区间内的接口请求数分布(histogram).
比如,查看多个分度(\(0\<\\phi\<1\))结果,取\(\\phi\)为 0.1, 0.3, 0.5, 0.9 各分度下的接口请求延迟(summary).
参考: https://grafana.com/blog/2020/06/23/how-to-visualize-prometheus-histograms-in-grafana/
grafana中使用histogram或者heatmap来作分布图.
发表回复