Observability and troubleshooting, topic 48 of 61
Metrics
metrics-server collects each Pod's and node's current CPU and memory, which kubectl top shows and the autoscalers use. It keeps no history.
For history, alerts and your own application's numbers, Prometheus scrapes metrics from Pods and the cluster's components, often installed with the kube-prometheus-stack chart, and Grafana draws them. Learn to read a container's use against its requests and limits: it is how you size workloads and spot one about to be killed for memory.
On Opsfolk
Elsewhere
- Resource metrics pipelineOfficial
- Prometheus overviewOfficial