Interview Prep/SRE & Reliability/Observability & Telemetry Decisions

Your Prometheus is a single instance holding everything. It is at 90% memory and the team wants 13 months of retention for SLO reports.

AdvancedScenarioObservability & Telemetry Decisions
Answer

Situation read → A single Prometheus is a single point of failure, cannot scale memory forever, and is not built for year-long retention.

What I'd do →

  1. Shard scraping by function (platform vs apps) or use functional Prometheus instances per cluster, each with short local retention (--storage.tsdb.retention.time=15d).
  2. Run Prometheus in HA pairs with identical config and external_labels (cluster, replica).
  3. Ship blocks or remote-write to long-term storage: Thanos (sidecar + object storage), Grafana Mimir, or a managed service (Amazon Managed Service for Prometheus).
  4. Deduplicate HA replicas at query time (Thanos --query.replica-label=replica).
  5. Enable downsampling (5m and 1h resolutions) for long ranges; keep SLO reports on recording rules so they query few series.
  6. Reduce cardinality before scaling — it is the cheapest fix.

Why → Local Prometheus is great for alerting with short retention; object storage is cheap for history. Separating the two scales both.

Interview tip → Keep alerting rules evaluated close to the data (local Prometheus) so alerts work even if long-term storage is down.

All SRE & Reliability questions

More on Observability & Telemetry Decisions