You need to enable JavaScript to run this app.
导航

cAdvisor 常见指标

最近更新时间2023.11.07 14:47:30

首次发布时间2023.02.28 17:57:43

cAdvisor 是 Google 开源的容器资源监控和性能分析工具。它是专门为容器而生,在 Kubernetes 中,cAdvisor 集成在 Kubelet 中,当 Kubelet 启动时,会自动启动 cAdvisor,即一个 cAdvisor 仅对一台 Node 主机进行监控。

cAdvisor 对 Node 节点上的资源及容器进行实时监控和性能数据采集,包括 CPU 、内存、网络吞吐量及文件系统等。

常用查询指标

cAdvisor 中的常用监控查询指标,如下表所示。

分类指标名称类型含义
CPUcontainer_cpu_load_average_10sgauge过去 10 秒容器 CPU 的平均负载
container_cpu_usage_seconds_totalcounter容器 CPU 累计使用量 (单位:秒)
container_cpu_system_seconds_totalcounterSystem CPU 累计占用时间(单位:秒)
container_cpu_user_seconds_totalcounterUser CPU 累计占用时间(单位:秒)
内存container_memory_max_usage_bytesgauge容器的最大内存使用量(单位:字节)
container_memory_usage_bytesgauge容器当前的内存使用量(单位:字节),包括缓存等可释放的内存
container_memory_working_set_bytesgauge容器当前的内存使用量(单位:字节)
container_spec_memory_limit_bytesgauge容器的内存使用量限制
machine_memory_bytesgauge当前主机的内存总量
网络container_network_receive_bytes_totalcounter容器网络累积接收数据总量(单位:字节)
container_network_receive_packets_totalcounter容器网络累积接收数据总量(单位:包)
container_network_transmit_bytes_totalcounter容器网络累积发送数据总量(单位:字节)
container_network_transmit_packets_totalcounter容器网络累积发送数据总量(单位:包)
container_network_receive_errors_totalcounter容器网络累计接收错误总量
container_network_transmit_errors_totalcounter容器网络累计发送错误总量

说明

其他指标详情,请参见 官网文档