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 →
- 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 - Enable query logging to find metrics used in ad-hoc queries.
- Produce a list of unused metrics with their series counts.
- Drop them in stages: first in non-prod, then in prod with a communication to teams.
- 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.
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