I'm trying to raise an alert on metric(metric_test). Evaluation interval is every 5mints.
Issue:
Suppose, At time(T1) alert is fired and prometheus scrapes metric at time(t3) but there is no metric with name metric_test at target during that time, prometheus will update as no data as shown below. In Prometheus GUI -> Graph, when you query for metric like below , it is showing no data.
Metric_test
no data
at time(t5) evaluation of alerts happens, due to "no data" it is marking alerts as resolved. I don't want evaluation of alert expressions to happen when there is no data .
How can we avoid that?