Getting No Data on alert although metric value is present

Hello there,

I have multiple alerts based on different metrics, sadly, I’m getting random no data on those alerts even if the metrics are present.

I have activated loki alert state history logging, it shows the “random” no data :

I’ll give an example below of an alert that shows a nodata:

When I click on Modify/Export and run queries, I can see the data there and I don’t have the “no data” warning :

When I go to the panel, we can see the no data (I’m using Grafana 10.4.1)

If I switch to table view, I can see the data of the corresponding timestamp are there :

Note that I have this problem on multiple versions of Grafana 9.4.3 through 10.4.1.

Thanks in advance,