Exposed Metrics in Kubernetes
Kubernetes provides many out-of-the-box metrics that can be collected by Prometheus. For this, Kubernetes' system has a service called kube-state-metrics (https://github.com/kubernetes/kube-state-metrics), which listens to the Kubernetes API server and produces metrics to inform you about the current status of the objects. These metrics provide information on the current health status of the cluster nodes and the other Kubernetes resources, such as pods and services. Some of the key metrics are explained here:
kube_pod_info
: This provides detailed information about the pods, such as the pod name, namespace, and the node name that the pod is running on.kube_pod_status_ready
: This enables you to check whether the pod is inReady
status.kube_pod_container_status_running
: This enables you to check whether the container has aRunning
status.kube_node_status_condition
: This provides information about the current condition of the...