I’ve done basic installs of InfluxDB and Grafana into Home Assistant and have InfluxDB working properly. However, when I try to connect InfluxDB as a source for Grafana, I get an error when testing.
Using “localhost:8086” I get dial tcp 127.0.0.1:8086: connect: connection refused error performing influxQL query
I also tried “influxdb:8086” and “a0d7b954_influxdb:8086” per other recommendations.
I found this guide which suggests adding a section in configuration.yaml to forward 127.0.0.1 like this:
ports:
- 127.0.0.1:8086:8086
When I try this, HA won’t reboot and tells me Integration error: ports - Integration 'ports' not found.
Makes sense, but then where do I put this port forwarding entry?