无法分析prometheus查询

时间:2018-03-20 01:55:59

标签: kubernetes prometheus

我尝试使用Grafana Labs的dahsboard.json下面的k8集群

https://grafana.com/dashboards/315/revisions

但是我理解json中使用的基础查询是非常困难的,有没有更好的参考我可以开始哪些有助于理解这些prometheus查询?

1 个答案:

答案 0 :(得分:1)

要弄清楚每个指标代表什么,请参阅cAdvisor的源代码:https://github.com/google/cadvisor/blob/master/metrics/prometheus.go#L117

要了解此文件中使用的Prometheus查询,请参阅"查询"普罗米修斯文档中的一章:https://prometheus.io/docs/prometheus/latest/querying/basics/