Interview Prep/SRE & Reliability/Prometheus SLIs & Recording Rules

`prometheus_rule_group_iterations_missed_total` keeps increasing for the SLO rule group.

AdvancedTroubleshootingPrometheus SLIs & Recording Rules
Answer

Likely causes → The group takes longer to evaluate than its interval, usually because long-window rules ([1d], [3d], [30d]) over raw metrics run every 30 seconds.

Diagnose →

prometheus_rule_group_last_duration_seconds{rule_group=~".*slo.*"}
prometheus_rule_group_interval_seconds{rule_group=~".*slo.*"}

Fix → Split rules into groups by window: short windows (5m to 1h) at 30s, long windows (6h to 30d) in a separate group with interval: 5m. Build long windows from pre-recorded short-window sums where possible.

Prevent → Alert on missed iterations and on group duration above 50% of interval.

All SRE & Reliability questions Roadmap: SRE & incident response

More on Prometheus SLIs & Recording Rules