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

Prometheus keeps 15 days of data, but leadership wants 13 months of metrics for capacity planning. What do you build?

IntermediateScenarioLong-Term Storage, Scale and Cost
Answer

Situation read → Local Prometheus retention is the wrong tool for a year of data: big disks, slow restarts, no HA for history.

What I'd do →

  1. Keep Prometheus local retention short (2–15 days) for fast queries and alerting.
  2. Add object-storage-backed long-term storage: Thanos sidecar uploading blocks, or remote_write to Mimir / a managed service.
  3. Enable downsampling (Thanos) and set retention per resolution:
    thanos compact --retention.resolution-raw=30d --retention.resolution-5m=120d --retention.resolution-1h=400d --wait
    
  4. Create recording rules for the capacity metrics (CPU, memory, requests per service) so year-long queries hit a few pre-aggregated series.
  5. Point Grafana's capacity dashboards at the Query Frontend.

Why → Object storage is cheap and durable; aggregates keep long-range queries fast.

Interview tip → Say clearly that only a small set of aggregated metrics needs 13 months, not every raw series.

All Monitoring & Observability questions

More on Long-Term Storage, Scale and Cost