hassio-addons / addon-grafana

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

InfluxDB in Grafana: Bad Request #377

Closed Strux-DK closed 5 months ago

Strux-DK commented 6 months ago

Problem/Motivation

I just followed this to configure influxDB, Grafana and Glances. However, i get another end result.

I don’t know what the error means or how to fix it. I can see the data is going from HomeAssistant into influxDB, so i guess the error is somewhere between influxDB and Grafana.

InfluxDB section of configuration.yaml:

influxdb:
host: a0d7b954-influxdb
port: 8086
database: homeassistant
username: homeassistant
password: xxx
max_retries: 3
default_measurement: state

In InfluxDB i got a database configured (homeassistant) for the Home Assistant data and a dedicated user as well, with admin rights, just to be sure.

Grafana data source configuration: URL: http://a0d7b954-influxdb:8086/ Database: homeassistant User: grafana Password: xxx

Other than that i run duckDNS and NGINX. When searching for a solution to this problem, i found that some others are also experiencing issues with a setup like mine, but i’m not sure why that would be, since all the traffic between the addons is internal… right? That’s also why i disabled ssl.

Expected behavior

I expected data to be shown in Grafana

Actual behavior

When i look at the Grafana dashboard, there is no data at all. When i hover over one of the errors in the dashboard, it says: “InfluxDB Error: Bad Request” billede

Steps to reproduce

Follow the video guide i guess.

github-actions[bot] commented 5 months 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!