Failed to build query 'A': database is locked

I’m getting DatasourceError notifications several times per hour. It always automatically resolves itselves in ~5 minutes, but the constant notification spam is annoying. What could be the issue here? Is it something in Grafana, or is it something with Prometheus? I’ve tried to delete the alert and re-creating it, but the new one has the same problem.
Skärmavbild 2023-02-13 kl. 08.51.10

Me too. I tried put sqlite in wal mode, but the problem persist.


Did you see that post? Grafana Database locked alerting meaning