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

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 →

  1. Shorter retention in non-prod (3–7 days for metrics, a few days for logs).
  2. Longer scrape intervals (60 s) in dev.
  3. Lower trace sampling (1–5%).
  4. Drop debug-heavy metrics and DEBUG logs except when a team opts in temporarily.
  5. 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.

All Monitoring & Observability questions

More on Long-Term Storage, Scale and Cost