Interview Prep/Monitoring & Observability/Kubernetes Monitoring, Scale & Cloud

What endpoints does the kubelet expose for Prometheus?

AdvancedConceptKubernetes Monitoring, Scale & Cloud
Answer

All on the kubelet's secure port 10250, protected by authn/authz (Prometheus needs a ServiceAccount with nodes/metrics access):

Path Content
/metrics Kubelet's own metrics: pod start latency, PLEG relist duration, volume operations
/metrics/cadvisor Container CPU, memory, network, filesystem (container_*)
/metrics/probes Liveness/readiness/startup probe results (prober_probe_total)
/metrics/resource Compact CPU/memory data used by metrics-server
kubectl get --raw /api/v1/nodes/<node>/proxy/metrics/cadvisor | head

A useful health signal is kubelet_pleg_relist_duration_seconds: when PLEG relisting gets slow (container runtime struggling), nodes flip to NotReady with "PLEG is not healthy".

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Kubernetes Monitoring, Scale & Cloud