Troubleshooting

A Prometheus alert fires whenever node CPU usage exceeds 90%, and brief spikes are paging the on-call engineer. The team wants the alert to fire only when usage stays above 90% for 10 continuous minutes. Which change to the alerting rule achieves this?

Show the answer

Correct answerA. Add for: 10m to the alert rule

The for clause keeps an alert in pending state until the expression has been true for the whole duration, which filters out transient spikes. repeat_interval only controls how often an already firing alert is re-notified, so spikes would still page.