Updated on 2025-04-07 GMT+08:00

Basic Metrics

Prometheus statements, also called Prometheus Query Language (PromQL), are used to query and operate time series data in Prometheus. CCI 2.0 provides basic metrics for you to query the aggregation metrics of resource objects to quickly obtain the statuses of resource objects.

CCI 2.0 provides basic metrics from the following dimensions: vCPU, disk/file system, memory, container status, network, and object status.

Category

Metric Name

Metric Description

vCPU metrics

container_cpu_system_seconds_total

Cumulative system CPU time, in seconds

container_cpu_usage_seconds_total

Total CPU time (system CPU time and user CPU time), in seconds

container_cpu_user_seconds_total

Cumulative user CPU time, in seconds

container_cpu_cfs_periods_total

Number of elapsed enforcement period intervals

container_cpu_cfs_throttled_periods_total

Number of throttled period intervals

container_cpu_cfs_throttled_seconds_total

Total time a container has been throttled

File system or disk metrics

container_fs_inodes_free

Number of available inodes in a file system

container_fs_usage_bytes

File system usage

container_fs_inodes_total

Total number of inodes in a file system

container_fs_io_current

Number of I/Os currently in progress in a disk or file system

container_fs_io_time_seconds_total

Cumulative seconds spent on doing I/Os by the disk or file system

container_fs_io_time_weighted_seconds_total

Cumulative weighted I/O time of a disk or file system

container_fs_limit_bytes

Total disk or file system capacity that can be consumed by a container

container_fs_reads_bytes_total

Cumulative amount of disk or file system data read by a container

container_fs_read_seconds_total

Cumulative count of seconds a container spent on reading disk or file system data

container_fs_reads_merged_total

Cumulative number of merged disk or file system reads made by a container

container_fs_reads_total

Cumulative count of disk or file system reads completed by a container

container_fs_sector_reads_total

Cumulative number of disk or file system sector reads completed by a container

container_fs_sector_writes_total

Cumulative number of disk or file system sector writes completed by a container

container_fs_writes_bytes_total

Total amount of data written by a container to a disk or file system

container_fs_write_seconds_total

Cumulative count of seconds the container spent on writing data to a disk or file system

container_fs_writes_merged_total

Cumulative number of merged container writes to a disk or file system

container_fs_writes_total

Cumulative count of completed container writes to a disk or file system

container_blkio_device_usage_total

Block I/O (blkio) device bytes usage

Memory metrics

container_memory_failures_total

Cumulative number of container memory allocation failures

container_memory_failcnt

Number of memory usage limit hits

container_memory_cache

Total page cache memory

container_memory_mapped_file

Size of memory mapped files

container_memory_max_usage_bytes

Maximum memory usage recorded for a container, in bytes

container_memory_rss

Size of the resident memory set for a container

container_memory_swap

Container swap usage

container_memory_usage_bytes

Current memory usage of a container, in bytes

container_memory_working_set_bytes

Current working set of a container, in bytes

Network metrics

container_network_receive_bytes_total

Total volume of data received by the container network, in bytes

container_network_receive_errors_total

Cumulative number of errors encountered while receiving data

container_network_receive_packets_dropped_total

Cumulative number of packets dropped while receiving data

container_network_receive_packets_total

Cumulative number of packets received

container_network_transmit_bytes_total

Total volume of data transmitted over the container network, in bytes

container_network_transmit_errors_total

Cumulative number of errors encountered while transmitting data

container_network_transmit_packets_dropped_total

Cumulative number of packets dropped while transmitting data

container_network_transmit_packets_total

Cumulative number of packets transmitted

Container spec or status

container_processes

Number of processes running inside a container

container_sockets

Number of open sockets for a container

container_file_descriptors

Number of open file descriptors for a container

container_threads

Number of threads running inside a container

container_threads_max

Maximum number of threads allowed inside a container

container_ulimits_soft

Soft ulimit values for the container root process. Process resources are unlimited if the value is -1, except priority and nice.

container_spec_cpu_period

CPU period of a container

container_spec_cpu_shares

CPU share of a container

container_spec_cpu_quota

CPU quota of a container

container_spec_memory_limit_bytes

Memory limit for a container, in bytes

container_spec_memory_reservation_limit_bytes

Memory reservation limit for a container, in bytes

container_spec_memory_swap_limit_bytes

Memory swap limit for a container, in bytes

container_start_time_seconds

The start time of a container

container_last_seen

Last time a container was seen by the exporter

Object status metrics

kube_pod_info

Information about a pod

kube_pod_owner

Information about the pod's owner

kube_pod_container_resource_limits

Container resource limits

kube_replicaset_owner

Information about the ReplicaSet's owner