You need to enable JavaScript to run this app.
容器服务

容器服务

复制全文
监控
通过虚拟节点获取 VCI 监控指标
复制全文
通过虚拟节点获取 VCI 监控指标

本文主要描述通过虚拟节点(Virtual Node)获取 VCI 实例支持的 CPU、内存、网络吞吐等性能指标的方法。

指标说明

VCI 实例基于火山引擎托管 Prometheus 服务提供 CPU、内存、网络吞吐等性能指标。更多指标说明,请参见 容器服务基础指标cAdvisor 常见指标

指标获取方式

通过如下命令可获取 VCI 实例的监控指标:

kubectl --kubeconfig=<kubeconfig_path> get --raw "/api/v1/nodes/<virtualnode_name>/proxy<endpoint>"

其中变量说明如下:

  • <kubeconfig_path>:VCI 实例所在容器集群的 KubeConfig 文件地址,例如.kube/config
  • <virtualnode_name>:VCI 实例被调度到的目标虚拟节点名称,例如vci-node1-cn-beijing-a
  • <endpoint>:指标对应的 Endpoint,例如/metrics/resource。详细 Endpoint 请参见下文表格中的 Endpoint 列。

完整命令示例如下所示:

kubectl --kubeconfig=.kube/config get --raw "/api/v1/nodes/vci-node1-cn-beijing-a/proxy/metrics/resource"

支持的指标

CPU

指标名称指标类型Endpoint指标单位指标含义
container_cpu_load_average_10sgauge/metrics/cadvisor不涉及过去 10 秒内容器 CPU 的平均负载。
container_cpu_usage_seconds_totalCounter/metrics/resource容器已使用 CPU 的时间总和。

内存

指标名称指标类型Endpoint指标单位指标含义
container_memory_working_set_bytesGauge/metrics/resource字节容器的物理内存使用量。

网络

指标名称指标类型Endpoint指标单位指标含义
container_network_receive_bytes_totalCounter/metrics/cadvisor字节容器网络累计接收的数据总量。
container_network_receive_packets_totalCounter/metrics/cadvisor容器网络累计接收的数据包总数。
container_network_transmit_bytes_totalCounter/metrics/cadvisor字节容器网络累计发送的数据总量。
container_network_transmit_packets_totalCounter/metrics/cadvisor容器网络累计发送的数据包总数。
container_network_receive_errors_totalCounter/metrics/cadvisor容器网络累计接收错误总量。
container_network_transmit_errors_totalCounter/metrics/cadvisor容器网络累计发送错误总量。
container_network_receive_packets_dropped_totalCounter/metrics/cadvisor容器网络接收数据时累计丢弃的数据包总量。
container_network_transmit_packets_dropped_totalCounter/metrics/cadvisor容器网络发送数据时累计丢弃的数据包总量。

存储卷

指标名称指标类型Endpoint指标单位指标含义
kubelet_volume_stats_available_bytesGauge/metrics字节存储卷可使用容量。
kubelet_volume_stats_capacity_bytesGauge/metrics字节存储卷总容量。
kubelet_volume_stats_inodesGauge/metrics存储卷 inode((index node)总量。
kubelet_volume_stats_inodes_freeGauge/metrics存储卷 inode 剩余数量。
kubelet_volume_stats_inodes_usedGauge/metrics存储卷已使用的 inode 数量。
kubelet_volume_stats_used_bytesGauge/metrics字节存储卷已使用容量。

容器组

指标名称指标类型Endpoint指标单位指标含义
pod_cpu_usage_seconds_totalCounter/metrics/resource容器组(Pod)已使用 CPU 的时间总和(单位:秒)。
pod_memory_working_set_bytesGauge/metrics/resource字节Pod 的物理内存使用量(单位:字节)。
最近更新时间:2024.12.27 17:14:29
这个页面对您有帮助吗?
有用
有用
无用
无用