Hi there,
anyone able to help getting Flux queries working in Grafana? I read through: this thread from 2020 and many other threads out there, but get stuck with error 401:
auth: truereporting: truessl: falsecertfile: fullchain.pemkeyfile: privkey.pemenvvars: []loglevel: info
What else do I need to do? I don’t know where to access influxdb.conf to add this to http section: “flux-enabled = true” like mentioned in the other thread – if that is even still relevant for my setup.
Grafana Current version: 8.2.2
InfluxDB Current version: 4.6.0
Home Assistant 2023.4.6
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230411.1 - latest
Afterwards paste the org name and token into Grafana’s data source page and it should get it going. Disable basic auth, unless you did some special reverse proxy in front of InfluxDB. The org and token should be what is used for authentication.
However I can’t find the InfluxDB CLI or API token page that is mentioned in the docs.
4.6. wasn’t a typo, but the InfluxDB HASS addon version. Not sure, which is the actual InfluxDB version, tbh, the UI reads “Chronograf Version: 1.10.1” at one page in the footer.
Hmm, sorry, from the screenshot it looked to me that you’re using the default InfluxDB interface, not Chronograf. I am not familiar with using InfluxDB through a HASS addon (I run it separately in docker) so I won’t be able to help.
Hopefully somebody else knows how to access the token creation page of InfluxDB.
EDIT: this must be a very common setup though, check YouTube for a recent howto about it, I bet there is something that walks though the HASS based InfluxDB + Grafana setup.
Thanks for coming back Attilla. Appreciate even if you cannot help.
I’m also surprised, that I can’t find any info. My current setup (HASS OS, Maria db, InfluxDB + Grafana) runs well with InfluxQL – but I can’t get Flux queries working. Confusing…