When trying to load alert rules in Grafana UI it throws:
Errors loading rules
Failed to load the data source configuration for Loki: Unable to fetch alert rules. Is the Loki data source properly configured?
Failed to load the data source configuration for prometheus-1: Authentication to data source failed; Bad Request
Failed to load the data source configuration for prometheus-2: Invalid data source URL: ""
Sample screenshot:
Healthwatch's only supported data source is the one named "prometheus". Any data source that is not named "prometheus" is added manually by a user.
On this example: "Loki", "prometheus-1" and "prometheus-2" was created manually.
To resolve this
1. Check if you are using the data source "Loki", "prometheus-1" and "prometheus-2". If you are not using the data source then you can delete it.
** Please note that if you delete them and they are still being used then deleting them might cause all dependent dashboards to fail to load.
2. If they are still being used. Check if you have properly configured the data source:
https://grafana.com/docs/grafana/latest/datasources/
Below are detailed steps on how to delete/review datasource using the Grafana UI
1. Login as admin in Grafana UI
2. go to Menu -> Connections -> Data sources
3. Choose the specific data source that needs to be reviewed.
4. If you want to delete the data source, Scroll down at the bottom of the page until you see the delete button. Click delete button.