Grafana Multiple Loki datasources

The errors we see here is for 2 Datasources named Loki and Prometheus. Both the datasources are not being used by us. We planned to delete the data sources but they are currently in read-only state and cannot be deleted from UI.

Data Sources:


I have checked values.yaml file used for Grafana deployment and the value for sidecar.datasources is set to false. So ideally, it shouldn’t add a new data source.

It seems the data source was added in previous release and was not removed automatically. May be some reference of it is stuck in sqlite3 database which is a default DB of Grafana.

Is there a way to remove these default datasources?

I’ve not seen this before, and I am no expert on Grafana. I’d encourage you to re-evaluate your Grafana configuration, and perhaps look at the actual configuration in your Grafana container just to double check if some datasource config didn’t sneak in from somewhere.