Prometheus scaling and long-term storage

Growing Prometheus beyond one server: Thanos, Grafana Mimir and VictoriaMetrics as long-term stores, federation, sharding, remote write tuning, and sizing disk, memory and retention.

Prometheus remote write to Grafana Mimir

Sending Prometheus metrics to a self-hosted Grafana Mimir cluster: remote write configuration, tenant headers, deduplicating HA pairs, running rules in Mimir, and the operating effort of a microservices deployment.

VictoriaMetrics as remote storage for Prometheus

Using VictoriaMetrics behind Prometheus through remote write: single-node versus cluster versions, keeping Prometheus for scraping and alerting, query compatibility in Grafana, and what is open source versus enterprise.

Sharding Prometheus scrape targets

Splitting targets across several Prometheus servers when one cannot keep up: hashmod relabeling, Operator shards, how queries and alerts work across shards, and pairing sharding with Thanos or remote storage.

Using a central Prometheus as a remote write receiver

Collecting from agent-mode Prometheus servers at edge sites into a central Prometheus with the remote write receiver: enabling the endpoint, protecting it, out-of-order samples, and when to move to Thanos or Mimir instead.

Sizing Prometheus disk and memory

Estimating disk from ingestion rate and retention with the storage docs formula, what drives memory (active series, churn, remote write and queries), lowering ingestion, and when to split a server.

Prometheus retention by time and size

Setting retention so Prometheus never fills its disk: time versus size limits, the 80-85% guidance, retention in the configuration file instead of deprecated flags, and changing it at runtime.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.