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).
More on Scaling Prometheus, Long-Term Storage & HA
What are the practical limits of a single Prometheus server?IntermediateWhen does hierarchical federation still make sense?IntermediateHow do you shard Prometheus scraping, and what do you lose?AdvancedCompare Thanos, Grafana Mimir and VictoriaMetrics.AdvancedThanos sidecar versus Thanos Receive: how do you choose?AdvancedWhat is Prometheus agent mode and when do you use it?Intermediate