Karpenter replaces nodes every few hours. How do you keep monitoring cheap and useful?
AdvancedProductionKubernetes & Multi-Cluster Observability
Answer
Every new node and pod creates new series (node-exporter, cAdvisor, kubelet), so heavy node churn means heavy series churn: head memory grows and compaction does more work even though the active series count looks stable.
What we do:
- Aggregate away
instance/nodein recording rules and build dashboards on node pools (karpenter.sh/nodepoollabel viakube_node_labels), not individual nodes. - Drop high-churn, low-value cAdvisor series (
container_network_*per interface,container_tasks_state,container_memory_failures_total) withmetricRelabelings. - Alert on pool-level symptoms (pending pods, allocatable headroom) instead of per-node
NodeNotReadyfor nodes being drained on purpose. - Watch
prometheus_tsdb_head_series_created_totalrate as the churn KPI.
More on Kubernetes & Multi-Cluster Observability
Which `kube-prometheus-stack` values do you always change before going to production?IntermediateOn a managed control plane (EKS, GKE, AKS), which default components and rules do you turn off?IntermediateOne Prometheus per cluster or one central Prometheus scraping every cluster?AdvancedHow do you make sure every series can be traced back to its cluster and environment?BeginnerHow do you use metrics to right-size requests and limits across the cluster?IntermediateHow do you monitor GPU nodes running ML workloads?Intermediate