cAdvisor: Container Metrics That Explain Saturation
Stage 8 · Observability Tools · Advanced
Understand cAdvisor collection, labels, kubelet integration, Prometheus scraping, cardinality, dashboards, and missing metrics.
Reading time · ~35 minutes, interactive
Difficulty: Advanced · Know this first: the preceding lesson in this module
Production request
Use this incident as the thread: a team needs a reliable answer, but one resource or control is behaving differently under load.
What is happening?
What can fail?
How do I troubleshoot it?
Change an input
Adjust the working-set or load assumption and keep the diagnosis explicit.
Commands and parameters
Run the commands in a disposable lab or on a host you own. Replace placeholders such as $PID and $POD.
curl -s http://localhost:8080/metrics | grep container_cpu
curl -s http://localhost:10250/metrics/cadvisor
curl -s http://prometheus:9090/api/v1/query --data-urlencode query=container_memory_working_set_bytesKnowledge check
Hands-on lab
Write what you observed, the command or query you ran, and the next decision you would make.
Basic to master checks
Basic
Intermediate
Advanced
Master
Production design exercise
Design the control for a multi-tenant production platform. State the boundary, signal, safe default, failure mode, rollback, and owner.