Server Down or Restarted Alert Rule

I want to monitor whether my servers are shut down or restarted. To do this, I created a Metricbeat Threshold rule via Observability, but it is not working properly. Even if the condition that triggered the alarm is no longer present, the alarm does not stop.

In most alarms, the Observed value field appears as [NO DATA].

Metricbeat sends data at every 10 minutes, however the rule checks for data every 2 minutes for the last 3 minutes, so It gives [NO DATA]. I've increased the rule schedule and loopback time. Are ther any ways to close alerts from the old rule configuration or I must untrack all of them?