addon-grafana
addon-grafana copied to clipboard
cannot connecto to influxdb
Problem/Motivation
cannot connecto to influxdb
Expected behavior
i can set datasource
Actual behavior
cannot create influxdb datasources
Steps to reproduce
- homeassistant installed on my raspberry, as supervised
- installed hassio add-ons: graft, influxdb, glance
- create dbs on influxdb: grafana, homessistant
- create users on influxdb: grafana, homeassistant, glances (all w/ same password)
- try to create grafana influxdb datasources using database: homessistant, username: grafana, password: [redacted]
Proposed changes
maybe the tutorial i'm following is too old https://www.youtube.com/watch?v=m9qIqq104as&t=326s and something changed in the last 2 years?
screenshots

Hey, I have the same issue. Followed the same tutorial and getting the same error
Not sure what we are doing wrong, any suggestions?
EDIT: Found someone implying its grafana's fault? https://community.grafana.com/t/error-connecting-influxdb-influxql-from-local-grafana-to-local-influxdb/73382
EDIT2: Someone with a workaround and this is working for me; first setup the connection in HA to fill the db with data, then grafana will work https://github.com/grafana/grafana/issues/55707
UPDATE: it connected AFTER the data started being sent from homeassistant. i suppose grafana checks for data, and if there's nothing yet, it thinks the connection was not succesful
Yeah I've got a potential solution for this in https://github.com/grafana/grafana/pull/56426, it looks as though the health check in Grafana is failing when influx is returning zero results, but the connection was otherwise successful.
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!