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

You suspect half of your ingested metrics are never used. How do you prove it and act?

IntermediateScenarioLong-Term Storage, Scale and Cost
Answer

Situation read → You need usage data from dashboards, alerts and ad-hoc queries.

What I'd do →

  1. Analyse dashboards and rules:
    mimirtool analyze grafana --address=https://grafana.example.com --key=$GRAFANA_TOKEN
    mimirtool analyze prometheus --address=https://mimir.example.com --grafana-metrics-file=metrics-in-grafana.json
    
  2. Enable query logging to find metrics used in ad-hoc queries.
  3. Produce a list of unused metrics with their series counts.
  4. Drop them in stages: first in non-prod, then in prod with a communication to teams.
  5. Repeat quarterly.

Why → Data-driven pruning avoids breaking someone's hidden dashboard.

Interview tip → Grafana Cloud's Adaptive Metrics automates the same idea by aggregating unused labels.

All Monitoring & Observability questions

More on Long-Term Storage, Scale and Cost