What is kube-state-metrics and how does it differ from metrics-server?
BeginnerProductionObservability & Day-2 Operations
Answer
kube-state-metrics turns object state into Prometheus metrics (Deployment replicas desired vs available, Pod phases, restarts, PVC status), useful for alerting on cluster state. metrics-server only provides current CPU/memory usage for kubectl top and HPA. Both are needed.
More on Observability & Day-2 Operations
What are the three pillars of observability and the standard tools on Kubernetes?BeginnerWhich alerts do you set up first on a cluster?BeginnerWhere do container logs live and how do you ship them?BeginnerWhat is the difference between `kubectl logs --previous` and `kubectl logs -f`?BeginnerWhat does a good runbook for a Kubernetes alert include?BeginnerHow do you collect cluster events and why?Beginner