

# Enhanced Container Insights（Classic）指标参考
<a name="container-insights-eks-classic-metrics"></a>

Enhanced Container Insights（Classic）将指标发布到 CloudWatch 中的 `ContainerInsights` 命名空间。下表按类别列出了所有指标及其维度与描述。

**注意**  
有关 OTel Container Insights 指标，请参阅[Enhanced Container Insights（建议）](container-insights-eks-otel.md)，其中列出了开源指标名称。

## 集群指标
<a name="container-insights-eks-classic-metrics-cluster"></a>

以下指标衡量 Amazon EKS 集群的整体运行状况和容量。


| 指标名称 | Dimensions | 说明 | 
| --- | --- | --- | 
| cluster\_failed\_node\_count | ClusterName | 集群中失败的工作线程节点的数目。 | 
| cluster\_node\_count | ClusterName | 集群中工作线程节点的总数。 | 

## 节点指标
<a name="container-insights-eks-classic-metrics-node"></a>

以下指标衡量节点级别的资源使用情况和容量。


| 指标名称 | Dimensions | 说明 | 
| --- | --- | --- | 
| node\_cpu\_limit | ClusterName, InstanceId, NodeName | 可以分配给节点的 CPU 单元的最大数量。 | 
| node\_cpu\_reserved\_capacity | ClusterName, InstanceId, NodeName | 节点上预留的 CPU 单元的百分比。 | 
| node\_cpu\_usage\_total | ClusterName, InstanceId, NodeName | 节点所使用的 CPU 单元的数量。 | 
| node\_cpu\_utilization | ClusterName, InstanceId, NodeName | 节点所使用的 CPU 单元的百分比。 | 
| node\_filesystem\_utilization | ClusterName, InstanceId, NodeName | 节点上所使用的文件系统容量的百分比。 | 
| node\_memory\_limit | ClusterName, InstanceId, NodeName | 可以分配给节点的最大内存量（以字节为单位）。 | 
| node\_memory\_reserved\_capacity | ClusterName, InstanceId, NodeName | 节点上预留的内存百分比。 | 
| node\_memory\_utilization | ClusterName, InstanceId, NodeName | 节点所使用的内存百分比。 | 
| node\_memory\_working\_set | ClusterName, InstanceId, NodeName | 节点的工作集中的内存量（以字节为单位）。 | 
| node\_network\_total\_bytes | ClusterName, InstanceId, NodeName | 节点上通过网络传输和接收的每秒总字节数。 | 
| node\_number\_of\_running\_containers | ClusterName, InstanceId, NodeName | 节点上正在运行的容器的数量。 | 
| node\_number\_of\_running\_pods | ClusterName, InstanceId, NodeName | 节点上正在运行的容器组（pod）的数量。 | 

## 容器组（pod）指标
<a name="container-insights-eks-classic-metrics-pod"></a>

以下指标衡量容器组（pod）级别的资源使用情况。


| 指标名称 | Dimensions | 说明 | 
| --- | --- | --- | 
| pod\_cpu\_utilization | ClusterName, Namespace, PodName | 容器组（pod）使用的 CPU 单元的百分比。 | 
| pod\_cpu\_utilization\_over\_pod\_limit | ClusterName, Namespace, PodName | 相对于容器组（pod）限制所使用的 CPU 单元的百分比。 | 
| pod\_cpu\_usage\_total | ClusterName, Namespace, PodName | 容器组（pod）使用的 CPU 单元的数量。 | 
| pod\_memory\_utilization | ClusterName, Namespace, PodName | 容器组（pod）使用的内存百分比。 | 
| pod\_memory\_utilization\_over\_pod\_limit | ClusterName, Namespace, PodName | 相对于容器组（pod）限制的内存百分比。 | 
| pod\_memory\_working\_set | ClusterName, Namespace, PodName | 容器组（pod）的工作集的内存量（以字节为单位）。 | 
| pod\_network\_rx\_bytes | ClusterName, Namespace, PodName | 容器组（pod）通过网络每秒接收的字节数。 | 
| pod\_network\_tx\_bytes | ClusterName, Namespace, PodName | 容器组（pod）通过网络每秒传输的字节数。 | 
| pod\_number\_of\_container\_restarts | ClusterName, Namespace, PodName | 容器组（pod）中容器重新启动的总次数。 | 

## 容器指标
<a name="container-insights-eks-classic-metrics-container"></a>

以下指标衡量容器级别的资源使用情况。


| 指标名称 | Dimensions | 说明 | 
| --- | --- | --- | 
| container\_cpu\_utilization | ClusterName, Namespace, PodName, ContainerName | 容器使用的 CPU 单元的百分比。 | 
| container\_memory\_utilization | ClusterName, Namespace, PodName, ContainerName | 容器使用的内存的百分比。 | 

## 服务和命名空间指标
<a name="container-insights-eks-classic-metrics-service"></a>

以下指标衡量服务和命名空间级别的容器组（pod）数量。


| 指标名称 | Dimensions | 说明 | 
| --- | --- | --- | 
| service\_number\_of\_running\_pods | ClusterName, Namespace, Service | 服务中正在运行的容器组（pod）的数量。 | 
| namespace\_number\_of\_running\_pods | ClusterName, Namespace | 命名空间中正在运行的容器组（pod）的数量。 | 

## NVIDIA GPU 指标
<a name="container-insights-eks-classic-metrics-gpu"></a>

如果您的集群具有配备 NVIDIA GPU 的节点，将收集以下指标。这些指标可帮助您监控节点、容器组（pod）和容器之间的 GPU 计算和内存利用率。


| 指标名称 | Dimensions | 说明 | 
| --- | --- | --- | 
| node\_gpu\_utilization | ClusterName, InstanceId, NodeName | 节点上所使用的 GPU 计算容量的百分比。 | 
| node\_gpu\_memory\_utilization | ClusterName, InstanceId, NodeName | 节点上所使用的 GPU 内存百分比。 | 
| node\_gpu\_temperature | ClusterName, InstanceId, NodeName | 节点上的 GPU 温度（以摄氏度为单位）。 | 
| pod\_gpu\_utilization | ClusterName, Namespace, PodName | 容器组（pod）使用的 GPU 计算容量的百分比。 | 
| container\_gpu\_utilization | ClusterName, Namespace, PodName, ContainerName | 容器使用的 GPU 计算容量的百分比。 | 

## AWS Neuron 指标
<a name="container-insights-eks-classic-metrics-neuron"></a>

如果您的集群具有配备 AWS Neuron 的实例（例如 Inf1 或 Inf2），将收集以下指标。这些指标有助于您监控节点和容器组（pod）级别的 NeuronCore 利用率。


| 指标名称 | Dimensions | 说明 | 
| --- | --- | --- | 
| node\_neuroncore\_utilization | ClusterName, InstanceId, NodeName | 节点上所使用的 NeuronCore 计算容量的百分比。 | 
| pod\_neuroncore\_utilization | ClusterName, Namespace, PodName | 容器组（pod）使用的 NeuronCore 计算容量的百分比。 | 

## Kubernetes API 服务器指标
<a name="container-insights-eks-classic-metrics-apiserver"></a>

以下指标是从 Kubernetes API 服务器收集。这些指标有助于您监控控制面板的运行状况和性能。


| 指标名称 | Dimensions | 说明 | 
| --- | --- | --- | 
| apiserver\_storage\_objects | ClusterName | API 服务器在 etcd 中存储的对象数量。 | 
| apiserver\_request\_total | ClusterName | API 服务器收到的请求总数。 | 
| apiserver\_request\_duration\_seconds | ClusterName | API 服务器请求的延迟（以秒为单位）。 | 