How do you detect and alert on CPU throttling and memory pressure before users notice?
AdvancedProductionObservability & Day-2 Operations
Answer
Alert on rate(container_cpu_cfs_throttled_periods_total[5m]) / rate(container_cpu_cfs_periods_total[5m]) > 0.25 for latency-sensitive services, memory working set over 85% of limit, restart count increases with OOM reason, node MemoryPressure conditions and eviction events. Pair with dashboards that show request vs limit vs usage.
More on Observability & Day-2 Operations
What are the three pillars of observability and the standard tools on Kubernetes?BeginnerWhat is kube-state-metrics and how does it differ from metrics-server?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?Beginner