How do you scale Prometheus for a large Kubernetes estate?
IntermediateProductionObservability & Day-2 Operations
Answer
Limit cardinality (drop high-cardinality labels, metric_relabel_configs), shard with the Prometheus Operator, use remote write to Mimir, Thanos, VictoriaMetrics or Amazon Managed Prometheus for long-term and global views, and shorten local retention. Use recording rules for expensive queries and watch prometheus_tsdb_head_series.
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