Grafana Loki + Promtail failed to build query 'A': data source not found

Hi I’ve configured promtail and loki on my machines, the data source seems fine as after testing it says Data source connected and labels found.

However, when i check the log of loki everything shows 1 error like shown in the pic:
failed to build query ‘A’: data source not found

May i ask what is the issue and how to fix this?

  1. Are you sure you are looking at the right data source for Loki?

  2. Looks like you may have a misconfigured grafana alerting rules somewhere.