什么提供了指标“container_cpu_usage_seconds_total”?普罗米修斯?
提前抱歉,因为这可能是一个非常容易回答的问题,我对 prometheus 和 grafana 还很陌生,我试图找出 prometheus 中的这个指标来自“container_cpu_usage_seconds_total”。
我在网上发现所有以“node_”开头的指标都来自节点导出器 pod。所以我只是想知道这个指标是否来自 prometheus 本身,或者这也来自节点导出器,因为我们目前在 pod 上没有设置注释,但正在 grafana 中获取这些指标。
提前致谢!
Sorry in advance as this is probably a very easy question to answer, I am pretty new to prometheus and grafana and I am trying to figure out where this metric in prometheus is coming from "container_cpu_usage_seconds_total".
I have found online that all metrics starting with "node_" come from the node exporter pod. So I am just wondering if this metric is coming prometheus itself or is this also coming from the node exporter as we currently have no annotations set on our pods but are getting these metrics inside grafana.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
指标
container_cpu_usage_seconds_total
来自
kubelet
中嵌入的cAdvisor
服务,通过端口10250
和端点/metrics 公开/cadvisor
。该指标的源代码定义位于:
cAdvisor/metrics/prometheus.go
The metric
container_cpu_usage_seconds_total
comes from
cAdvisor
service embedded inkubelet
, exposed through port10250
and endpoint/metrics/cadvisor
.The metric's source code definition is in:
cAdvisor/metrics/prometheus.go