Can prometheus don't resolve alert when metric data missing?

Viewed 1116

There is my Prometheus alert rule

avg_over_time(metricName[1m]) > 100

After alert fired, when the metrci data missing for more than 1 minute, the alert will resolved.

Is there any way to stop the change of alert status?

1 Answers

You can do this by leveraging last_over_time() as in my answer here.

(Answering this old question because it's still a high ranking Google result)

Related