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 →
- Shard scraping by function (platform vs apps) or use functional Prometheus instances per cluster, each with short local retention (
--storage.tsdb.retention.time=15d). - Run Prometheus in HA pairs with identical config and
external_labels(cluster,replica). - Ship blocks or remote-write to long-term storage: Thanos (sidecar + object storage), Grafana Mimir, or a managed service (Amazon Managed Service for Prometheus).
- Deduplicate HA replicas at query time (Thanos
--query.replica-label=replica). - Enable downsampling (5m and 1h resolutions) for long ranges; keep SLO reports on recording rules so they query few series.
- 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.
More on Observability & Telemetry Decisions
Your team has metrics and logs but no tracing. A request to checkout fans out to 9 services and nobody can tell where the 2 seconds go. How do you introduce tracing?IntermediateThe monthly observability bill doubled in two months and finance wants it cut by 40%. What do you do?IntermediateA developer adds `customer_id` as a label to a request counter "for better debugging". You catch it in code review. What do you say?BeginnerYou need to pick a trace sampling strategy for a service doing 20,000 requests per second.AdvancedEvery team has built their own Grafana dashboards with different panels. During incidents, nobody can find anything.BeginnerA service's logs are unstructured strings like `Order 123 failed for user 9 after 3 retries`. Searching them during incidents is painful.Beginner