You need alerts that span all clusters, such as "global checkout error rate". Where do you evaluate them?
IntermediateScenarioLong-Term Storage, Scale and Cost
Answer
Situation read → Per-cluster Prometheus only sees its own data.
What I'd do →
- Keep most alerts local to each cluster Prometheus (most reliable).
- Evaluate global rules in the central store: Thanos Ruler against the Querier, or Mimir's ruler.
- Use recording rules locally to send small aggregates (per-cluster error rates) to the central store.
- Add a meta-alert for the global ruler itself (rule evaluation failures,
thanos_rule_evaluation_with_warnings_total). - Route global alerts with a
scope="global"label.
Why → Global rules depend on more components; keep them for genuinely global questions.
Interview tip → Partial responses from missing clusters can hide problems, so configure the ruler to fail on partial data.
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