Grafana + InfluxDB integration problem

Dear all,
I really need your help…

I am running Hassio: HassOS 4.13

After more than one year in which everything was fine, I keep now receiving an error from Grafana in trying to connect to the InfluxDB:
Here is the error:

error parsing query: found %, expected identifier, string, number, bool at line 1, char 8

> Object
> message:"InfluxDB Error: error parsing query: found %, expected identifier, string, number, bool at line 1, char 8"
> data:Object
> error:"error parsing query: found %, expected identifier, string, number, bool at line 1, char 8"
> message:"error parsing query: found %, expected identifier, string, number, bool at line 1, char 8"
> config:Object
> method:"GET"
> url:"api/datasources/proxy/1/query"
> params:Object
> data:null
> precision:"ms"
> inspect:Object
> type:"influxdb"
> paramSerializer:function(e){…}
> headers:Object
> X-Grafana-Org-Id:1
> retry:0
> hideFromInspector:false

I was looking for the same thing, and came across your question.
I’ve found the solution here:

BTW, I fixed this by going to the “Configuration - Data Sources” section in Grafana, and changing the connection settings to InfluxDB to use POST instead of GET.

I can confirm this has solved the issue for me

2 Likes

Fantastic, THANKS A LOT!

It solved the problem, everything works again as planned!
I wonder why this setting got changed? Maybe due to an update of Grafana going on in background…

Thanks again,
R