Interview Prep/Monitoring & Observability/Scaling Prometheus, Long-Term Storage & HA

How do you run alerting and recording rules at global scale?

AdvancedProductionScaling Prometheus, Long-Term Storage & HA
Answer

Local rules (per-cluster alerts) stay in each Prometheus so they work even if the central store is down. Global rules (cross-cluster SLOs) run in the Mimir ruler or Thanos Ruler, which queries the central store. Keep rule groups small and spread them (the Mimir ruler shards groups across instances), and watch prometheus_rule_group_last_duration_seconds versus the interval: if evaluation takes longer than the interval, rules get skipped (prometheus_rule_group_iterations_missed_total).

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Scaling Prometheus, Long-Term Storage & HA