Grafana alerts info different from preview info

Hi folks,
I have created an alert for cpu usage . It should alert when the cpu usage is above 90% . When I click on preview alert I get accurate info but when I save the alert it keeps firing and sends old and non accurate info.
Here is my query
avg by(dnsname) ((1 - rate(node_cpu_seconds_total{mode="idle"}[5m])) * 100 )
When I click on preview alerts, the alert state is normal:

But when I save the alert it’s state become alerting, however it should be set to normal.(Cpu usage is normal on all nodes)

Please advise.

Maybe this will help: for InfluxDB (flux) queries I’ve noticed a discrepancy between the period selection in the query editor for an alert and the alert-query runtime results. Instead of referring to the period selection (i.e. v.blabla) I now use “-1h to now()” as time period.
Apparently the alert test is different from the runtime when it comes to the time-period. Maybe there is a connection here?

Thanks for your reply.
Actually, I have solved this issue by upgrading Grafana-server to the latest version 9.1, but I wasn’t able to identify the source of the bug :frowning:
Thanks again for your time