hassio-addons / addon-grafana

Grafana - Home Assistant Community Add-ons
https://addons.community
MIT License
220 stars 61 forks source link

cannot connecto to influxdb #282

Closed magnum closed 1 year ago

magnum commented 1 year ago

Problem/Motivation

cannot connecto to influxdb

Expected behavior

i can set datasource

Actual behavior

cannot create influxdb datasources

Steps to reproduce

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

Screenshot 2022-10-06 alle 00 51 39 Screenshot 2022-10-06 alle 00 51 27 Screenshot 2022-10-06 alle 00 52 25 Screenshot 2022-10-06 alle 00 52 33
Penait1 commented 1 year ago

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

magnum commented 1 year ago

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

gtk-grafana commented 1 year ago

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.

github-actions[bot] commented 1 year ago

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!