Documentation forSolarWinds Observability

Kubernetes metrics

Many of the collected metrics from Kubernetes cluster and node entities are displayed as widgets in SolarWinds Observability explorers; additional metrics may be collected and available in the Metrics Explorer. You can also create an alert for when an entity's metric value moves out of a specific range. See Entities in SolarWinds Observability for information about entity types in SolarWinds Observability.

The following tables list some of the metrics collected for these entities. To see the Kubernetes metrics in the Metrics Explorer, type k8s. in the search box.

Cluster metrics

Metric Unit Description
sw.metrics.healthscore Percent (%)

Health score. A health score provides real-time insight into the overall health and performance of your monitored entities. The health score is calculated based on anomalies detected for the entity, alerts triggered for the entity's metrics, and the status of the entity. The health score is displayed as a single numerical value that ranges from a Good (70-100) to Moderate (40-69) to Bad (0-39) distinction.

To view the health score for Kubernetes cluster entities in the Metrics Explorer, filter the sw.metrics.healthscore metric by entity_types and select kubernetescluster.

k8s.cluster.cpu.allocatable core

The allocatable of CPU on cluster that are available for scheduling.

Metric type: Gauge.

k8s.cluster.cpu.capacity core

The cluster CPU capacity.

Metric type: Gauge.

k8s.cluster.cpu.utilization Percent (%)

The cluster CPU usage.

Metric type: Gauge.

k8s.cluster.memory.allocatable Binary Bytes

The allocatable of memory on cluster that are available for scheduling.

Metric type: Gauge.

k8s.cluster.memory.capacity Binary Bytes

The cluster memory capacity.

Metric type: Gauge.

k8s.cluster.memory.utilization Percent (%)

The cluster memory usage.

Metric type: Gauge.

k8s.cluster.nodes Count

The number of nodes on cluster.

Metric type: Gauge.

k8s.cluster.nodes.ready Count

The number of nodes with status condition ready.

Metric type: Gauge.

k8s.cluster.nodes.ready.avg Percent (%)

The percentage of nodes with status condition ready.

Metric type: Gauge.

k8s.cluster.pods Count

The number of pods on a cluster.

Metric type: Gauge.

k8s.cluster.pods.running Count

The number of pods in running phase.

Metric type: Gauge.

k8s.cluster.spec.cpu.requests cores

The total number of requested CPU by all containers in a cluster.

Metric type: Gauge.

k8s.cluster.spec.memory.requests Binary Bytes

The total number of requested memory by all containers in a cluster.

Metric type: Gauge.

Node metrics

Metric Unit Description
sw.metrics.healthscore Percent (%)

Health score. A health score provides real-time insight into the overall health and performance of your monitored entities. The health score is calculated based on anomalies detected for the entity, alerts triggered for the entity's metrics, and the status of the entity. The health score is displayed as a single numerical value that ranges from a Good (70-100) to Moderate (40-69) to Bad (0-39) distinction.

To view the health score for Kubernetes node entities in the Metrics Explorer, filter the sw.metrics.healthscore metric by entity_types and select kubernetesnode.

k8s.kube_node_created seconds (s)

Unix creation timestamp.

Metric type: Gauge.

k8s.kube_node_info  

Information about a cluster node.

Metric type: Gauge.

k8s.kube_node_spec_unschedulable  

Whether a node can schedule new pods.

Metric type: Gauge.

k8s.kube_node_status_allocatable

cpu=<core>

ephemeral_storage=<byte>

pods=<integer>

attachable_volumes_*=<byte>

hugepages_*=<byte>

memory=<byte>

The amount of resources allocatable for pods (after reserving some for system daemons).

Metric type: Gauge.

k8s.kube_node_status_capacity

cpu=<core>

ephemeral_storage=<byte>

pods=<integer>

attachable_volumes_*=<byte>

hugepages_*=<byte>

memory=<byte>

The total amount of resources available for a node.

Metric type: Gauge.

k8s.kube_node_status_condition  

The condition of a cluster node.

Metric type: Gauge.

k8s.kube_node_status_ready  

Node status (as tag sw.k8s.node.status).

Metric type: Gauge.

k8s.node.cpu.allocatable core

CPU Utilization. The allocatable of CPU on node that are available for scheduling.

Metric type: Gauge.

k8s.node.cpu.capacity core

CPU Utilization. The node CPU capacity.

Metric type: Gauge.

k8s.node.cpu.usage.seconds.rate core

CPU Utilization. The rate of node cumulative CPU time consumed.

Metric type: Gauge.

k8s.node.fs.iops  

Disk IOPS. Rate of reads and writes of all pods on node.

Metric type: Gauge.

k8s.node.fs.throughput  

Disk throughput. Rate of bytes read and written of all pods on node.

Metric type: Gauge.

k8s.node.fs.usage Binary Bytes

Disk Usage. Number of bytes that are consumed by containers on this node’s filesystem.

Metric type: Gauge.

k8s.node.memory.allocatable Binary Bytes

Memory Utilization. The allocatable of memory on node that are available for scheduling.

Metric type: Gauge.

k8s.node.memory.capacity Binary Bytes

Memory Utilization. The node memory capacity.

Metric type: Gauge.

k8s.node.memory.working_set Binary Bytes

Memory utilization. Current working set on node.

Metric type: Gauge.

k8s.node.network.bytes_received  

Network In. Rate of bytes received of all pods on node.

Metric type: Gauge.

k8s.node.network.bytes_transmitted  

Network Out. Rate of bytes transmitted of all pods on node.

Metric type: Gauge.

k8s.node.network.packets_received  

Rate of packets received of all pods on node.

Metric type: Gauge.

k8s.node.network.packets_transmitted  

Rate of packets transmitted of all pods on node.

Metric type: Gauge.

k8s.node.network.receive_packets_dropped  

Rate of packets dropped while receiving of all pods on node.

Metric type: Gauge.

k8s.node.network.transmit_packets_dropped  

Rate of packets dropped while transmitting of all pods on node.

Metric type: Gauge.

k8s.node.pods Count

Number of pods. The number of pods on a node.

Metric type: Gauge.

k8s.node.status.condition.diskpressure  

The condition diskpressure of a cluster node (1 when true, 0 when false or unknown).

Metric type: Gauge.

k8s.node.status.condition.memorypressure  

The condition memorypressure of a cluster node (1 when true, 0 when false or unknown).

Metric type: Gauge.

k8s.node.status.condition.networkunavailable  

The condition networkunavailable of a cluster node (1 when true, 0 when false or unknown).

Metric type: Gauge.

k8s.node.status.condition.pidpressure  

The condition pidpressure of a cluster node (1 when true, 0 when false or unknown).

Metric type: Gauge.

k8s.node.status.condition.ready  

The condition ready of a cluster node (1 when true, 0 when false or unknown).

Metric type: Gauge.

Pod metrics

Metric Unit Description
k8s.kube.pod.owner.daemonset  

Information about the DaemonSet owning the pod.

Metric type: Gauge.

k8s.kube.pod.owner.replicaset  

Information about the ReplicaSet owning the pod.

Metric type: Gauge.

k8s.kube.pod.owner.statefulset  

Information about the StatefulSet owning the pod.

Metric type: Gauge.

k8s.kube_pod_completion_time seconds (s)

Completion time in unix timestamp for a pod.

Metric type: Gauge.

k8s.kube_pod_created seconds (s)

Unix creation timestamp.

Metric type: Gauge.

k8s.kube_pod_info  

Information about the pod.

Metric type: Gauge.

k8s.kube_pod_owner  

Information about the pod owner.

Metric type: Gauge.

k8s.kube_pod_start_time seconds (s)

Start time in unix timestamp for a pod.

Metric type: Gauge.

k8s.kube_pod_status_phase  

The pod's current phase.

Metric type: Gauge.

k8s.kube_pod_status_ready  

Describes whether the pod is ready to serve requests.

Metric type: Gauge.

k8s.kube_pod_status_reason  

The pod status reasons.

Metric type: Gauge.

k8s.pod.containers Count

The number of containers on pod.

Metric type: Gauge.

k8s.pod.containers.running  

Current number of running containers on pod.

Metric type: Gauge.

k8s.pod.cpu.usage.seconds.rate seconds (s)

CPU Utilization. The rate of pod's cumulative CPU time consumed.

Metric type: Gauge.

k8s.pod.fs.iops  

Disk IOPS. Rate of reads and writes of all containers on pod.

Metric type: Gauge.

k8s.pod.fs.reads.bytes.rate  

Rate of bytes read of all containers on pod.

Metric type: Gauge.

k8s.pod.fs.reads.rate  

Rate of reads of all containers on pod.

Metric type: Gauge.

k8s.pod.fs.throughput  

Disk Throughput. Rate of bytes read and written of all containers on pod.

Metric type: Gauge.

k8s.pod.fs.usage.bytes Binary Bytes

Disk Usage. Number of bytes that are consumed by containers on this pod's filesystem.

Metric type: Gauge.

k8s.pod.fs.writes.bytes.rate  

Rate of bytes written of all containers on pod.

Metric type: Gauge.

k8s.pod.fs.writes.rate  

Rate of writes of all containers on pod.

Metric type: Gauge.

k8s.pod.memory.working_set Binary Bytes

Memory Utilization. Current working set on pod.

Metric type: Gauge.

k8s.pod.network.bytes_received  

Network In. Rate of bytes received of all containers on pod.

Metric type: Gauge.

k8s.pod.network.bytes_transmitted  

Network Out. Rate of bytes transmitted of all containers on pod.

Metric type: Gauge.

k8s.pod.network.packets_received  

Rate of packets received of all containers on pod.

Metric type: Gauge.

k8s.pod.network.packets_transmitted  

Rate of packets transmitted of all containers on pod.

Metric type: Gauge.

k8s.pod.network.receive_packets_dropped  

Rate of packets dropped while receiving of all containers on pod.

Metric type: Gauge.

k8s.pod.network.transmit_packets_dropped  

Rate of packets dropped while transmitting of all containers on pod.

Metric type: Gauge.

k8s.pod.spec.cpu.limit cores

CPU quota of all containers on pod in given CPU period.

Metric type: Gauge.

k8s.pod.spec.cpu.requests cores

The number of requested request resource by all containers on pod.

Metric type: Gauge.

k8s.pod.spec.memory.limit Binary Bytes

Memory Utilization. Memory limit for all containers on pod.

Metric type: Gauge.

k8s.pod.spec.memory.requests Binary Bytes

The number of requested memory by all containers on pod.

Metric type: Gauge.

k8s.pod.status.reason  

The current pod status reason.

Metric type: Gauge.

Container metrics

Metric Unit Description
k8s.container.spec.cpu.requests core

The number of requested CPU by a container.

Metric type: Gauge.

k8s.container.spec.memory.requests Binary Bytes

The number of requested memory by a container.

Metric type: Gauge.

k8s.container.status  

Describes the status of the container (waiting, running, or terminated).

Metric type: Gauge.

k8s.container_cpu_cfs_periods_total  

Number of elapsed enforcement period intervals.

Metric type: Counter.

k8s.container_cpu_cfs_throttled_periods_total  

Number of throttled period intervals.

Metric type: Counter.

k8s.container_cpu_usage_seconds_total seconds (s)

Cumulative CPU time consumed.

Metric type: Counter

k8s.container_fs_reads_bytes_total Binary Bytes

Cumulative count of bytes read.

Metric type: Counter.

k8s.container_fs_reads_total Count

Cumulative count of reads completed.

Metric type: Counter.

k8s.container_fs_usage_bytes Binary Bytes

Number of bytes that are consumed by the container on this filesystem.

Metric type: Gauge.

k8s.container_fs_writes_bytes_total Binary Bytes

Cumulative count of bytes written.

Metric type: Counter.

k8s.container_fs_writes_total Count

Cumulative count of writes completed.

Metric type: Counter.

k8s.container_memory_working_set_bytes Binary Bytes

Current working set.

Metric type: Gauge.

k8s.container_network_receive_bytes_total Binary Bytes

Cumulative count of bytes received.

Metric type: Counter.

k8s.container_network_receive_packets_dropped_total Count

Cumulative count of packets dropped while receiving.

Metric type: Counter.

k8s.container_network_receive_packets_total Count

Cumulative count of packets received.

Metric type: Counter.

k8s.container_network_transmit_bytes_total Binary Bytes

Cumulative count of bytes transmitted.

Metric type: Counter.

k8s.container_network_transmit_packets_dropped_total Count

Cumulative count of packets dropped while transmitting.

Metric type: Counter.

k8s.container_network_transmit_packets_total Count

Cumulative count of packets transmitted.

Metric type: Counter.

k8s.container_spec_cpu_period  

CPU period of the container.

Metric type: Gauge.

k8s.container_spec_cpu_quota  

CPU quota of the container.

Metric type: Gauge.

k8s.container_spec_memory_limit_bytes Binary Bytes

Memory limit for the container.

Metric type: Gauge.

k8s.kube_pod_container_info  

Information about a container in a pod.

Metric type: Gauge.

k8s.kube_pod_container_resource_limits cpu=<core>

memory=<bytes>

The number of requested limit resource by a container.

Metric type: Gauge.

k8s.kube_pod_container_resource_requests

cpu=<core>

memory=<bytes>

The number of requested request resource by a container.

Metric type: Gauge.

k8s.kube_pod_container_state_started seconds (s)

Start time in unix timestamp for a pod container.

Metric type: Gauge.

k8s.kube_pod_container_status_last_terminated_exitcode  

Describes the exit code for the last container in terminated state.

Metric type: Gauge.

k8s.kube_pod_container_status_last_terminated_reason  

Describes the last reason the container was in terminated state.

Metric type: Gauge.

k8s.kube_pod_container_status_ready  

Describes whether the containers readiness check succeeded.

Metric type: Gauge.

k8s.kube_pod_container_status_restarts_total  

The number of container restarts per container.

Metric type: Counter.

k8s.kube_pod_container_status_running  

Describes whether the container is currently in running state.

Metric type: Gauge.

k8s.kube_pod_container_status_terminated  

Describes whether the container is currently in terminated state.

Metric type: Gauge.

k8s.kube_pod_container_status_terminated_reason  

Describes the reason the container is currently in terminated state.

Metric type: Gauge.

k8s.kube_pod_container_status_waiting  

Describes whether the container is currently in waiting state.

Metric type: Gauge.

k8s.kube_pod_container_status_waiting_reason  

Describes the reason the container is currently in waiting state.

Metric type: Gauge.

Deployment metrics

Metric Unit Description
k8s.deployment.condition.available  

Describes whether the deployment has an Available status condition.

Metric type: Gauge.

k8s.deployment.condition.progressing  

Describes whether the deployment has a Progressing status condition.

Metric type: Gauge.

k8s.deployment.condition.replicafailure  

Describes whether the deployment has a ReplicaFailure status condition.

Metric type: Gauge.

k8s.kube_deployment_created seconds (s)

Unix creation timestamp.

Metric type: Gauge.

k8s.kube_deployment_labels  

Kubernetes labels converted to Prometheus labels.

Metric type: Gauge.

k8s.kube_deployment_spec_paused  

Whether the deployment is paused and will not be processed by the deployment controller.

Metric type: Gauge.

k8s.kube_deployment_spec_replicas  

Number of desired pods for a deployment.

Metric type: Gauge.

k8s.kube_deployment_status_condition  

The current status conditions of a deployment.

Metric type: Gauge.

k8s.kube_deployment_status_replicas  

The number of replicas per deployment.

Metric type: Gauge.

k8s.kube_deployment_status_replicas_available  

The number of available replicas per deployment.

Metric type: Gauge.

k8s.kube_deployment_status_replicas_ready  

The number of ready replicas per deployment.

Metric type: Gauge.

k8s.kube_deployment_status_replicas_unavailable  

The number of unavailable replicas per deployment.

Metric type: Gauge.

k8s.kube_deployment_status_replicas_updated  

The number of updated replicas per deployment.

Metric type: Gauge.

StatefulSet metrics

Metric Unit Description
k8s.kube_statefulset_created seconds (s)

Unix creation timestamp.

 

k8s.kube_statefulset_labels  

Kubernetes labels converted to Prometheus labels.

Metric type: Gauge.

k8s.kube_statefulset_replicas  

Number of desired pods for a StatefulSet.

Metric type: Gauge.

k8s.kube_statefulset_status_replicas_current  

The number of current replicas per StatefulSet.

Metric type: Gauge.

k8s.kube_statefulset_status_replicas_ready  

The number of ready replicas per StatefulSet.

Metric type: Gauge.

k8s.kube_statefulset_status_replicas_updated  

The number of updated replicas per StatefulSet.

Metric type: Gauge.

DaemonSet metrics

Metric Unit Description
k8s.kube_daemonset_created seconds (s)

Unix creation timestamp.

Metric type: Gauge.

k8s.kube_daemonset_labels  

Kubernetes labels converted to Prometheus labels.

Metric type: Gauge.

k8s.kube_daemonset_status_current_number_scheduled  

The number of nodes that should be running a daemon pod and have at least one daemon pod running.

Metric type: Gauge.

k8s.kube_daemonset_status_desired_number_scheduled  

The number of nodes that should be running the daemon pod.

Metric type: Gauge.

k8s.kube_daemonset_status_number_available  

The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available.

Metric type: Gauge.

k8s.kube_daemonset_status_number_misscheduled  

The number of nodes that should not be running a daemon pod and have one or more running anyway.

Metric type: Gauge.

k8s.kube_daemonset_status_number_ready  

The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.

Metric type: Gauge.

k8s.kube_daemonset_status_number_unavailable  

The number of nodes that should be running the daemon pod and have none of the daemon pod running and available.

Metric type: Gauge.

k8s.kube_daemonset_status_updated_number_scheduled  

The total number of nodes that are running updated daemon pod.

Metric type: Gauge.

ReplicaSet metrics

Metric Unit Description
k8s.kube.replicaset.owner.deployment  

Information about the Deployment owning the ReplicaSet.

Metric type: Gauge.

k8s.kube_replicaset_created seconds (s)

Unix creation timestamp.

Metric type: Gauge.

k8s.kube_replicaset_owner  

Information about the ReplicaSet's owner.

Metric type: Gauge.

Namespace metrics

Metric Unit Description
k8s.kube_namespace_created seconds (s)

Unix creation timestamp.

Metric type: Gauge.

k8s.kube_namespace_status_phase  

Kubernetes namespace status phase.

Metric type: Gauge.

k8s.kube_resourcequota

ResourceQuota metric.

Metric type: Gauge.

Other metrics

Metric Unit Description
k8s.apiserver.request.successrate Percent (%)

Success rate of Kubernetes API server calls.

Metric type: Gauge.