The monthly observability bill doubled in two months and finance wants it cut by 40%. What do you do?
IntermediateScenarioObservability & Telemetry Decisions
Answer
Situation read → Telemetry cost grows with series count, log volume and retention, usually driven by a few noisy sources. Cut waste first, signal last.
What I'd do →
- Find the top series by metric name:
and per-job sample ingestion withtopk(20, count by (__name__) ({__name__=~".+"}))scrape_samples_scraped. - Find the top log producers by namespace and app (Loki:
sum by (namespace) (bytes_over_time({namespace=~".+"}[1h]))). - Drop unused metrics at scrape time with
metric_relabel_configs(action: drop) — histograms with 30 buckets nobody queries are classic. - Cut debug/info logs in production, sample repetitive success logs, keep all errors.
- Tier retention: 15 days hot, 13 months downsampled for SLO reporting.
- Use tail sampling for traces: keep 100% of errors and slow traces, 5% of the rest.
- Assign telemetry cost per team with a dashboard so the incentive sits with the owner.
Why → Most telemetry is never queried. Removing it costs nothing in reliability; removing SLO inputs costs a lot.
Interview tip → Say "I never cut the SLI metrics or error logs — everything else is negotiable."
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?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.BeginnerYour Prometheus is a single instance holding everything. It is at 90% memory and the team wants 13 months of retention for SLO reports.Advanced