Dev and staging clusters cost as much to monitor as production. What do you change?
BeginnerScenarioLong-Term Storage, Scale and Cost
Answer
Situation read → Same configuration everywhere means the same cost everywhere.
What I'd do →
- Shorter retention in non-prod (3–7 days for metrics, a few days for logs).
- Longer scrape intervals (60 s) in dev.
- Lower trace sampling (1–5%).
- Drop debug-heavy metrics and DEBUG logs except when a team opts in temporarily.
- Keep the same dashboards and alert rules (routed to chat, not the pager) so problems are caught before prod.
Why → Non-prod needs signal for testing, not prod-level history and resolution.
Interview tip → Make settings Helm values per environment, not separate configs.
More on 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?IntermediateThe Thanos compactor has halted and the bucket keeps growing. What do you do?AdvancedGrafana shows every series twice after you added a second Prometheus replica with Thanos. How do you fix it?IntermediateRemote write to your central store is falling further behind every hour. How do you handle it?AdvancedMimir rejects writes from a team with `err-mimir-max-series-per-user`. What do you do?IntermediateYour observability SaaS bill tripled in a quarter, driven by custom metrics. How do you bring it down?Intermediate