What are the practical limits of a single Prometheus server?
IntermediateProductionScaling Prometheus, Long-Term Storage & HA
Answer
It scales vertically only. As a rough guide, a well-sized server handles a few million active series and a few hundred thousand samples per second; memory is the usual limit (roughly a few KB per active series including overhead). Local retention is typically 15 days to a few weeks. There is no built-in replication or global query. Beyond that you shard, federate, or move to a horizontally scalable backend.
prometheus_tsdb_head_series
rate(prometheus_tsdb_head_samples_appended_total[5m])
More on Scaling Prometheus, Long-Term Storage & HA
When does hierarchical federation still make sense?IntermediateHow do you shard Prometheus scraping, and what do you lose?AdvancedCompare Thanos, Grafana Mimir and VictoriaMetrics.AdvancedThanos sidecar versus Thanos Receive: how do you choose?AdvancedWhat is Prometheus agent mode and when do you use it?IntermediateHow do you tune `remote_write` for high throughput?Advanced