Interview Prep/Monitoring & Observability/Long-Term Storage, Scale and Cost

Estimate resources for a Prometheus that will hold 2 million active series with 30-day retention.

AdvancedScenarioLong-Term Storage, Scale and Cost
Answer

Situation read → Size memory from active series and disk from samples per second.

What I'd do →

  1. Samples/s: 2M series / 30 s interval ≈ 66,700 samples/s.
  2. Disk: 66,700 × 2,592,000 s (30 days) × ~1.5 bytes ≈ 260 GB, plus WAL and compaction headroom: provision ~400 GB.
  3. Memory: a few KB per active series ≈ 8–12 GB for the head, plus queries and churn: plan 24–32 GB.
  4. CPU: 4–8 cores; more for heavy rule evaluation.
  5. Validate with a load test (avalanche generating synthetic series) and watch process_resident_memory_bytes.

Why → Estimates prevent OOMs and full disks after go-live.

Interview tip → At this size, discuss sharding or a remote store rather than a single huge Prometheus.

All Monitoring & Observability questions

More on Long-Term Storage, Scale and Cost