基础指标范围
Prometheus 语句,也称为 PromQL(Prometheus Query Language)查询语句,是用于在 Prometheus 中查询和操作时间序列数据的语言。在CCI 2.0中,提供了以下基础指标,通过这些基础指标可以查询资源对象的聚合指标,用户能够快速地获取资源对象的状态信息。
CCI 2.0提供了以下基础指标,分别涵盖了CPU、磁盘、内存、容器状态、网络、对象状态指标6个维度,具体指标范围如下表所示。
| 指标类别 | 指标名称 | 指标含义 | 
|---|---|---|
| CPU | container_cpu_system_seconds_total | 容器系统CPU总时长 | 
| container_cpu_usage_seconds_total | 容器在所有CPU内核上的累积占用时间 | |
| container_cpu_user_seconds_total | 容器用户CPU总时长 | |
| container_cpu_cfs_periods_total | 容器已经执行的CPU时间周期数 | |
| container_cpu_cfs_throttled_periods_total | 容器被限流的CPU时间周期数 | |
| container_cpu_cfs_throttled_seconds_total | 容器被限流的CPU时间 | |
| 文件系统/磁盘 | container_fs_inodes_free | 文件系统的可用inode数量 | 
| container_fs_usage_bytes | 文件系统的使用量 | |
| container_fs_inodes_total | 文件系统的总计inode数量 | |
| container_fs_io_current | 磁盘/文件系统当前正在进行的 I/O 数量 | |
| container_fs_io_time_seconds_total | 磁盘/文件系统花费在 I/O 上的累计秒数 | |
| container_fs_io_time_weighted_seconds_total | 磁盘/文件系统累积加权 I/O 时间 | |
| container_fs_limit_bytes | 容器可以使用的磁盘/文件系统总量 | |
| container_fs_reads_bytes_total | 容器累积读取磁盘/文件系统数据的总量 | |
| container_fs_read_seconds_total | 容器累积读取磁盘/文件系统数据的秒数 | |
| container_fs_reads_merged_total | 容器合并读取磁盘/文件系统的累积计数 | |
| container_fs_reads_total | 容器已完成读取磁盘/文件系统的累积计数 | |
| container_fs_sector_reads_total | 容器已完成扇区读取磁盘/文件系统的累积计数 | |
| container_fs_sector_writes_total | 容器已完成扇区写入磁盘/文件系统的累积计数 | |
| container_fs_writes_bytes_total | 容器累积写入磁盘/文件系统数据的总量 | |
| container_fs_write_seconds_total | 容器累计写入磁盘/文件系统的秒数 | |
| container_fs_writes_merged_total | 容器合并写入磁盘/文件系统的累积计数 | |
| container_fs_writes_total | 容器已完成写入磁盘/文件系统的累积计数 | |
| container_blkio_device_usage_total | 容器区分IO操作对磁盘的使用总量 | |
| 内存 | container_memory_failures_total | 容器内存分配失败的累积计数 | 
| container_memory_failcnt | 容器内存使用达到限制的次数 | |
| container_memory_cache | 容器总页缓存内存 | |
| container_memory_mapped_file | 容器内存映射文件的大小 | |
| container_memory_max_usage_bytes | 容器历史最大内存使用量 | |
| container_memory_rss | 容器常驻内存集的大小 | |
| container_memory_swap | 容器虚拟内存使用量 | |
| container_memory_usage_bytes | 容器当前的内存使用量 | |
| container_memory_working_set_bytes | 容器工作集内存使用量 | |
| 网络 | container_network_receive_bytes_total | 容器网络累积接收数据总量 | 
| container_network_receive_errors_total | 接收时遇到的错误累积计数 | |
| container_network_receive_packets_dropped_total | 接收时丢弃的数据包的累积计数 | |
| container_network_receive_packets_total | 接收数据包的累积计数 | |
| container_network_transmit_bytes_total | 容器网络累积传输数据总量 | |
| container_network_transmit_errors_total | 传输时遇到的错误累积计数 | |
| container_network_transmit_packets_dropped_total | 传输时丢弃的数据包的累积计数 | |
| container_network_transmit_packets_total | 传输数据包的累积计数 | |
| 容器spec/状态 | container_processes | 容器当前运行的进程数 | 
| container_sockets | 容器当前打开套接字的个数 | |
| container_file_descriptors | 容器打开的文件描述符数量 | |
| container_threads | 容器内当前运行的线程数 | |
| container_threads_max | 容器内允许运行的最大线程数 | |
| container_ulimits_soft | 容器内1号进程的软 ulimit 值。如果为-1,则无限制,优先级和nice除外 | |
| container_spec_cpu_period | 容器分配的CPU周期 | |
| container_spec_cpu_shares | 容器分配的CPU份额 | |
| container_spec_cpu_quota | 容器分配的CPU配额 | |
| container_spec_memory_limit_bytes | 容器可以使用的总内存量限制 | |
| container_spec_memory_reservation_limit_bytes | 容器可以使用的预留内存限制 | |
| container_spec_memory_swap_limit_bytes | 容器可以使用的虚拟内存限制 | |
| container_start_time_seconds | 容器已经运行的时间 | |
| container_last_seen | 最近一次监控采集器感知到容器的时间 | |
| 对象状态指标 | kube_pod_info | Pod信息 | 
| kube_pod_owner | Pod的Owner信息 | |
| kube_pod_container_resource_limits | 容器的资源limits | |
| kube_replicaset_owner | RS的所有者信息 | 
 
  