Page tree

Listed is the TSCO metrics mapping to Prometheus API queries. Not include derived metrics. Only core query calculation is listed, sum by different entities are not show in this list.

Some metircs are slightly different in different version of Prometheus. Here only the old version of metrics are listed. For example for node-exporter: node_memory_MemActive (old version) → node_memory_MemActive_Byte (newer version); for kubelet: container_cpu_usage_seconds (old version) → container_cpu_usage_seconds_total (newer version)

 In the ETL if the listed metrics are empty, it will call the newer version. 

Configuration Metrics
EntityMetricsPrometheus QueryComponent
NamespaceMEM_LIMIT_MAX kube_resourcequota{resource =~ ".*limits.memory.*", type="hard"}kube-state-metric
CREATION_TIME kube_namespace_createdkube-state-metric
CPU_LIMIT_MAX kube_resourcequota{resource =~ ".*limits.cpu.*", type="hard"}kube-state-metric
CPU_REQUEST_MAX kube_resourcequota{resource =~ ".*requests.cpu|cpu.*",type="hard"}kube-state-metric
MEM_REQUEST_MAX kube_resourcequota{resource =~ ".*requests.memory|memory.*", type="hard"}kube-state-metric
KPOD_NUM_MAX kube_resourcequota{resource =~ ".*pods.*", type="hard"}kube-state-metric
ST_LIMIT_MAXkube_resourcequota{resource =~ ".*requests.storage.*", type="hard"}kube-state-metric
ST_REQUEST_MAXkube_resourcequota{resource =~ ".*limits.storage.*", type="hard"}kube-state-metric




PodCREATION_TIME kube_pod_createdkube-state-metric
HOST_NAME kube_pod_infokube-state-metric
KPOD_STATUS kube_pod_status_phasekube-state-metric




nodeKUBERNETES_VERSION kube_node_infokube-state-metric
KPOD_NUM_MAX kube_node_status_capacity_podskube-state-metric
CREATION_TIME kube_node_createdkube-state-metric
CPU_NUM count by (instance) (sum by(instance, cpu) (node_cpu)) node-exporter
TOTAL_REAL_MEM kube_node_status_capacity_memory_byteskube-state-metric
OS_TYPE kube_node_infokube-state-metric
TOTAL_FS_SIZE node_filesystem_size{mountpoint="/"}node-exporter
MAINTENANCE_MODEkube_node_spec_unschedulablekube-state-metric



clusterCPU_NUM sum(count by (instance) (sum by(instance, cpu) (node_cpu)))node-exporter
TOTAL_REAL_MEM kube_node_status_capacity_memory_byteskube-state-metric
KPOD_NUM_MAX kube_node_status_capacity_podskube-state-metric
KUBERNETES_VERSION kube_node_infokube-state-metric
TOTAL_FS_SIZE node_filesystem_size{mountpoint="/"}node-exporter
ST_LIMIT_MAXkube_resourcequota{resource =~ ".*requests.storage.*", type="hard"}kube-state-metric
ST_REQUEST_MAXkube_resourcequota{resource =~ ".*limits.storage.*", type="hard"}kube-state-metric




controllerCREATION_TIME kube_daemonset_created kube_statefulset_created kube_replicaset_created kube_replicationcontroller_createdkube-state-metric
CONTROLLER_TYPE kube_pod_ownerkube-state-metric




Persistent volumeST_TYPE kube_persistentvolume_infokube-state-metric
Performance Metrics
namespaceCPU_REQUEST kube_pod_container_resource_requests_cpu_coreskube-state-metric
namespaceCPU_LIMIT kube_pod_container_resource_limits_cpu_coreskube-state-metric
namespaceMEM_KLIMIT kube_pod_container_resource_limits_memory_byteskube-state-metric
namespaceMEM_REQUEST kube_pod_container_resource_requests_memory_byteskube-state-metric
namespaceCPU_USED_NUM rate(container_cpu_usage_seconds_total[5m])kubelet
namespaceMEM_USED container_memory_usage_byteskubelet
namespaceNET_IN_BYTE_RATE container_network_receive_bytes_totalkubelet
namespaceNET_IN_BIT_RATE container_network_receive_bytes_totalkubelet
namespaceNET_IN_ERROR_RATE container_network_receive_errors_totalkubelet
namespaceNET_OUT_BYTE_RATE container_network_transmit_bytes_totalkubelet
namespaceNET_OUT_BIT_RATE container_network_transmit_bytes_totalkubelet
namespaceNET_BIT_RATE avg(container_network_receive_bytes_total+container_network_transmit_bytes_total)kubelet
namespaceNET_OUT_ERROR_RATE container_network_transmit_errors_totalkubelet
namespaceBYSTATUS_KPOD_NUM kube_pod_status_phasekube-state-metric
namespaceKPOD_NUM kube_pod_status_phasekube-state-metric
namespaceCONTAINER_NUM kube_pod_container_infokube-state-metric
namespaceBYIMAGE_NUM kube_pod_container_infokube-state-metric
namespaceMEM_ACTIVE container_memory_working_set_byteskubelet
namespaceCPU_UTIL sum(rate(container_cpu_usage_seconds_total[5m]))/count(container_cpu_usage_seconds_total)kubelet
namespaceBYIMAGE_MEM_REQUEST kube_pod_container_resource_requests_memory_byteskube-state-metric
namespaceBYIMAGE_CPU_REQUEST kube_pod_container_resource_requests_cpu_coreskube-state-metric
namespaceST_ALLOCATEDkube_persistentvolumeclaim_resource_requests_storage_byteskube-state-metric




podCPU_REQUEST kube_pod_container_resource_requests_cpu_coreskube-state-metric
podCPU_LIMIT kube_pod_container_resource_limits_cpu_coreskube-state-metric
podMEM_KLIMIT kube_pod_container_resource_limits_memory_byteskube-state-metric
podMEM_REQUEST kube_pod_container_resource_requests_memory_byteskube-state-metric
podCPU_USED_NUM rate(container_cpu_usage_seconds_total[5m])kubelet
podMEM_USED container_memory_usage_byteskubelet
podNET_IN_BYTE_RATE container_network_receive_bytes_totalkubelet
podNET_IN_BIT_RATE container_network_receive_bytes_totalkubelet
podNET_IN_ERROR_RATE container_network_receive_errors_totalkubelet
podNET_OUT_BYTE_RATE container_network_transmit_bytes_totalkubelet
podNET_OUT_BIT_RATE container_network_transmit_bytes_totalkubelet
podNET_BIT_RATE avg(container_network_receive_bytes_total+container_network_transmit_bytes_total)kubelet
podNET_OUT_ERROR_RATE container_network_transmit_errors_totalkubelet
podBYSTATUS_KPOD_NUM kube_pod_status_phasekube-state-metric
podKPOD_NUM kube_pod_status_phasekube-state-metric
podCONTAINER_NUM kube_pod_container_infokube-state-metric
podBYIMAGE_NUM kube_pod_container_infokube-state-metric
podMEM_ACTIVE container_memory_working_set_byteskubelet
podCPU_UTIL rate(container_cpu_usage_seconds_total[5m])/container_cpu_usage_seconds_totalkubelet
podBYIMAGE_MEM_REQUEST kube_pod_container_resource_requests_memory_byteskube-state-metric
podBYIMAGE_CPU_REQUEST kube_pod_container_resource_requests_cpu_coreskube-state-metric




nodeCPU_REQUEST kube_pod_container_resource_requests_cpu_coreskube-state-metric
nodeCPU_LIMIT kube_pod_container_resource_limits_cpu_coreskube-state-metric
nodeMEM_KLIMIT kube_pod_container_resource_limits_memory_byteskube-state-metric
nodeMEM_REQUEST kube_pod_container_resource_requests_memory_byteskube-state-metric
nodeCPU_USED_NUM rate(node_cpu{mode!="idle", mode!="iowait"}[5m])node-exporter
nodeCPU_UTIL (rate(node_cpu{mode!="idle",mode!="iowait"}[5m]))/(count by (instance) (sum by(instance,cpu) (node_cpu)) )node-exporter
nodeMEM_USED node_memory_MemTotal - node_memory_MemFree - node_memory_KernelStacknode-exporter
nodeMEM_REAL_USED node_memory_MemTotal - node_memory_MemFree - node_memory_KernelStack - node_memory_Cached - node_memory_Buffers - node_memory_Slab
nodeMEM_UTIL (node_memory_MemTotal - node_memory_MemFree - node_memory_KernelStack)/node_memory_MemTotal
nodeNET_IN_BYTE_RATE node_network_receive_bytesnode-exporter
nodeNET_IN_BIT_RATE node_network_receive_bytesnode-exporter
nodeNET_IN_ERROR_RATE node_network_receive_errsnode-exporter
nodeNET_OUT_BYTE_RATE node_network_transmit_bytesnode-exporter
nodeNET_OUT_BIT_RATE node_network_transmit_bytesnode-exporter
nodeNET_BIT_RATE avg(node_network_transmit_bytes+node_network_receive_bytes)node-exporter
nodeNET_OUT_ERROR_RATE node_network_receive_bytesnode-exporter
nodeBYSTATUS_KPOD_NUM kube_pod_status_phasekube-state-metric
nodeKPOD_NUM kube_pod_status_phasekube-state-metric
nodeCONTAINER_NUM kube_pod_container_infokube-state-metric
nodeBYIMAGE_NUM kube_pod_container_infokube-state-metric
nodeMEM_ACTIVE node_memory_Activenode-exporter
nodeBYIMAGE_MEM_REQUEST kube_pod_container_resource_requests_memory_byteskube-state-metric
nodeBYIMAGE_CPU_REQUEST kube_pod_container_resource_requests_cpu_coreskube-state-metric
nodeMEM_PAGE_MAJOR_FAULT_RATE node_vmstat_pgmajfaultnode-exporter
nodeTOTAL_FS_FREE node_filesystem_free{mountpoint="/"}node-exporter
nodeTOTAL_FS_USED node_filesystem_size{mountpoint="/"}- node_filesystem_free{mountpoint="/"}node-exporter
nodeTOTAL_FS_UTIL 1-(node_filesystem_free{mountpoint="/"}/node_filesystem_size{mountpoint="/"})node-exporter
nodeCPU_ALLOCATABLE kube_node_status_allocatable_cpu_coreskube-state-metric
nodeMEMORY_ALLOCATABLEkube_node_status_allocatable_memory_byteskube-state-metric
nodeCPU_REQUEST_ALLOCATABLE kube_pod_container_resource_requests_cpu_cores/kube_node_status_allocatable_cpu_coreskube-state-metric
nodeMEM_REQUEST_ALLOCATABLE kube_pod_container_resource_requests_memory_bytes/kube_node_status_allocatable_memory_byteskube-state-metric




clusterCPU_REQUEST kube_pod_container_resource_requests_cpu_coreskube-state-metric
clusterCPU_LIMIT kube_pod_container_resource_limits_cpu_coreskube-state-metric
clusterMEM_KLIMIT kube_pod_container_resource_limits_memory_byteskube-state-metric
clusterMEM_REQUEST kube_pod_container_resource_requests_memory_byteskube-state-metric
clusterCPU_USED_NUM rate(node_cpu{mode!=\"idle\", mode!=\"iowait\"}[5m])node-exporter
clusterCPU_UTIL (rate(node_cpu{mode!=\"idle\",mode!=\"iowait\"}[5m]))/(count by (instance) (sum by(instance,cpu) (node_cpu)) )node-exporter
clusterMEM_USED node_memory_MemTotal - node_memory_MemFree - node_memory_KernelStacknode-exporter
clusterMEM_REAL_USED node_memory_MemTotal - node_memory_MemFree - node_memory_KernelStack - node_memory_Cached - node_memory_Buffers - node_memory_Slabnode-exporter
clusterMEM_UTIL (node_memory_MemTotal - node_memory_MemFree - node_memory_KernelStack)/node_memory_MemTotalnode-exporter
clusterNET_IN_BYTE_RATE node_network_receive_bytesnode-exporter
clusterNET_IN_BIT_RATE node_network_receive_bytesnode-exporter
clusterNET_IN_ERROR_RATE node_network_receive_errsnode-exporter
clusterNET_OUT_BYTE_RATE node_network_transmit_bytesnode-exporter
clusterNET_OUT_BIT_RATE node_network_transmit_bytesnode-exporter
clusterNET_BIT_RATE avg(node_network_transmit_bytes+node_network_receive_bytes)node-exporter
clusterNET_OUT_ERROR_RATE node_network_receive_bytesnode-exporter
clusterBYSTATUS_KPOD_NUM kube_pod_status_phasekube-state-metric
clusterKPOD_NUM kube_pod_status_phasekube-state-metric
clusterCONTAINER_NUM kube_pod_container_infokube-state-metric
clusterBYIMAGE_NUM kube_pod_container_infokube-state-metric
clusterMEM_ACTIVE node_memory_Activenode-exporter
clusterBYIMAGE_MEM_REQUEST kube_pod_container_resource_requests_memory_byteskube-state-metric
clusterBYIMAGE_CPU_REQUEST kube_pod_container_resource_requests_cpu_coreskube-state-metric
clusterMEM_PAGE_MAJOR_FAULT_RATE node_vmstat_pgmajfaultnode-exporter
clusterTOTAL_FS_FREE node_filesystem_free{mountpoint="/"}node-exporter
clusterTOTAL_FS_USED node_filesystem_size{mountpoint="/"}- node_filesystem_free{mountpoint="/"}node-exporter
clusterTOTAL_FS_UTIL 1-(node_filesystem_free{mountpoint="/"}/node_filesystem_size{mountpoint="/"})node-exporter
clusterCPU_ALLOCATABLE kube_node_status_allocatable_cpu_coreskube-state-metric
clusterMEMORY_ALLOCATABLE kube_node_status_allocatable_memory_byteskube-state-metric
clusterSERVICE_NUMcount(kube_service_info )kube-state-metric
clusterSECRET_NUMcount(kube_secret_info )kube-state-metric
clusterJOB_NUMcount(kube_job_info )kube-state-metric
clusterCPU_REQUEST_ALLOCATABLE kube_pod_container_resource_requests_cpu_cores/kube_node_status_allocatable_cpu_coreskube-state-metric
clusterMEM_REQUEST_ALLOCATABLE kube_pod_container_resource_requests_memory_bytes/kube_node_status_allocatable_memory_byteskube-state-metric
clusterST_ALLOCATEDkube_persistentvolumeclaim_resource_requests_storage_byteskube-state-metric




controllerCPU_REQUEST kube_pod_container_resource_requests_cpu_coreskube-state-metric
controllerCPU_LIMIT kube_pod_container_resource_limits_cpu_coreskube-state-metric
controllerMEM_KLIMIT kube_pod_container_resource_limits_memory_byteskube-state-metric
controllerMEM_REQUEST kube_pod_container_resource_requests_memory_byteskube-state-metric
controllerCPU_USED_NUM rate(container_cpu_usage_seconds_total[5m])kubelet
controllerMEM_USED container_memory_usage_byteskubelet
controllerNET_IN_BYTE_RATE container_network_receive_bytes_totalkubelet
controllerNET_IN_BIT_RATE container_network_receive_bytes_totalkubelet
controllerNET_IN_ERROR_RATE container_network_receive_errors_totalkubelet
controllerNET_OUT_BYTE_RATE container_network_transmit_bytes_totalkubelet
controllerNET_OUT_BIT_RATE container_network_transmit_bytes_totalkubelet
controllerNET_BIT_RATE avg(container_network_receive_bytes_total+container_network_transmit_bytes_total)kubelet
controllerNET_OUT_ERROR_RATE container_network_transmit_errors_totalkubelet
controllerBYSTATUS_KPOD_NUM kube_pod_status_phasekube-state-metric
controllerKPOD_NUM kube_pod_status_phasekube-state-metric
controllerCONTAINER_NUM kube_pod_container_infokube-state-metric
controllerBYIMAGE_NUM kube_pod_container_infokube-state-metric
controllerMEM_ACTIVE container_memory_working_set_byteskubelet
controllerCPU_UTIL rate(container_cpu_usage_seconds_total[5m])/container_cpu_usage_seconds_totalkubelet
controllerBYIMAGE_MEM_REQUEST kube_pod_container_resource_requests_memory_byteskube-state-metric
controllerBYIMAGE_CPU_REQUEST kube_pod_container_resource_requests_cpu_coreskube-state-metric
controllerKPOD_REPLICA_UPTODATE_NUM kube_deployment_status_replicas_availablekube-state-metric




pvST_ALLOCATED kube_persistentvolumeclaim_resource_requests_storage_byteskube-state-metric
pvST_SIZE kube_persistentvolumeclaim_infokube-state-metric




Pod WorkloadCPU_REQUEST kube_pod_container_resource_requests_cpu_coreskube-state-metric
Pod WorkloadCPU_LIMIT kube_pod_container_resource_limits_cpu_coreskube-state-metric
Pod WorkloadMEM_KLIMIT kube_pod_container_resource_limits_memory_byteskube-state-metric
Pod WorkloadMEM_REQUEST kube_pod_container_resource_requests_memory_byteskube-state-metric
Pod WorkloadCPU_USED_NUM rate(container_cpu_usage_seconds_total[5m])kubelet
Pod WorkloadMEM_USED container_memory_usage_byteskubelet
Pod WorkloadKPOD_NUM kube_pod_status_phasekube-state-metric
Pod WorkloadMEM_ACTIVE container_memory_working_set_byteskubelet
Pod WorkloadBYCONT_MEM_ACTIVE container_memory_working_set_byteskubelet
Pod WorkloadBYCONT_IMAGE_MEM_ACTIVE container_memory_working_set_byteskubelet
Pod WorkloadRESTART_COUNT kube_pod_container_status_restarts_totalkube-state-metric
Pod WorkloadHEAPMEM_MAX jvm_memory_bytes_max{area="heap"}jmx-exporter
Pod WorkloadNONHEAPMEM_MAX jvm_memory_bytes_max{area="nonheap"}jmx-exporter
Pod WorkloadHEAPMEM_COMMITTED jvm_memory_bytes_committed{area="heap"}jmx-exporter
Pod WorkloadNONHEAPMEM_COMMITTED jvm_memory_bytes_committed{area="nonheap"}jmx-exporter
Pod WorkloadHEAPMEM_USED jvm_memory_bytes_used{area="heap"}jmx-exporter
Pod WorkloadNONHEAPMEM_USED jvm_memory_bytes_used{area="nonheap"}jmx-exporter
Pod WorkloadHEAPMEM_FREE jvm_memory_bytes_max{area="heap"} -  jvm_memory_bytes_used{area="heap"}jmx-exporter
Pod WorkloadHEAPMEM_UTIL jvm_memory_bytes_used{area="heap"} /  jvm_memory_bytes_max{area="heap"}jmx-exporter
Pod WorkloadNONHEAPMEM_FREE jvm_memory_bytes_max{area="nonheap"} -  jvm_memory_bytes_used{area="nonheap"}jmx-exporter
Pod WorkloadGC_EVENTSjvm_gc_collection_seconds_countjmx-exporter
Pod WorkloadGC_TIME jvm_gc_collection_seconds_sumjmx-exporter
Pod WorkloadBYCONT_CPU_REQUEST kube_pod_container_resource_requests_cpu_coreskube-state-metric
Pod WorkloadBYCONT_CPU_LIMIT kube_pod_container_resource_limits_cpu_coreskube-state-metric
Pod WorkloadBYCONT_MEM_KLIMIT kube_pod_container_resource_limits_memory_byteskube-state-metric
Pod WorkloadBYCONT_MEM_REQUEST kube_pod_container_resource_requests_memory_byteskube-state-metric
Pod WorkloadBYCONT_CPU_USED_NUM rate(container_cpu_usage_seconds_total[5m])kubelet
Pod WorkloadBYCONT_MEM_USED container_memory_usage_byteskubelet
Pod WorkloadBYCONT_CPU_USED_NUM_HM rate(container_cpu_usage_seconds_total[5m])kubelet
Pod WorkloadBYCONT_MEM_USED_HM container_memory_usage_byteskubelet
Pod WorkloadBYCONT_KPOD_NUM kube_pod_status_phasekube-state-metric
Pod WorkloadBYCONT_RESTART_COUNT kube_pod_container_status_restarts_totalkube-state-metric
Pod WorkloadBYCONT_IMAGE_CPU_REQUEST kube_pod_container_resource_requests_cpu_coreskube-state-metric
Pod WorkloadBYCONT_IMAGE_CPU_LIMIT kube_pod_container_resource_limits_cpu_coreskube-state-metric
Pod WorkloadBYCONT_IMAGE_MEM_KLIMIT kube_pod_container_resource_limits_memory_byteskube-state-metric
Pod WorkloadBYCONT_IMAGE_MEM_REQUEST kube_pod_container_resource_requests_memory_byteskube-state-metric
Pod WorkloadBYCONT_IMAGE_CPU_USED_NUM rate(container_cpu_usage_seconds_total[5m])kubelet
Pod WorkloadBYCONT_IMAGE_MEM_USED container_memory_usage_byteskubelet
Pod WorkloadBYCONT_IMAGE_KPOD_NUM kube_pod_status_phasekube-state-metric
Pod WorkloadBYCONT_IMAGE_RESTART_COUNT kube_pod_container_status_restarts_totalkube-state-metric
  • No labels