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

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 →

  1. Keep most alerts local to each cluster Prometheus (most reliable).
  2. Evaluate global rules in the central store: Thanos Ruler against the Querier, or Mimir's ruler.
  3. Use recording rules locally to send small aggregates (per-cluster error rates) to the central store.
  4. Add a meta-alert for the global ruler itself (rule evaluation failures, thanos_rule_evaluation_with_warnings_total).
  5. 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.

All Monitoring & Observability questions

More on Long-Term Storage, Scale and Cost