Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No "direct" option for InfluxDB connection in Grafana #64

Open
ned14 opened this issue Aug 17, 2022 · 4 comments
Open

No "direct" option for InfluxDB connection in Grafana #64

ned14 opened this issue Aug 17, 2022 · 4 comments

Comments

@ned14
Copy link

ned14 commented Aug 17, 2022

I create using:

docker run -d --name docker-influxdb-grafana -p 192.168.2.4:3003:3003 -p 192.168.2.4:8083:8083 -p 192.168.2.4:8086:8086 -v /home/homeassistant/influxdb:/var/lib/influxdb -v /home/homeassistant/grafana:/var/lib/grafana philhawthorne/docker-influxdb-grafana:edge

(I changed port 3004, surely makes no difference)

In Grafana's Add Source for InfluxDB, there are choices of "Server" and "Browser" no "Direct" as per docs. Neither option works, both produce an error on "Save and Test"

@philhawthorne
Copy link
Owner

philhawthorne commented Aug 18, 2022 via email

@ned14
Copy link
Author

ned14 commented Aug 18, 2022

I tried that before as well, still an error.

I found that if you go into the InfluxDB Admin page and create a new database, and then specify that database name along with root/root as the credentials to the Grafana Add Source, that works.

@philhawthorne
Copy link
Owner

Hmm yes that makes sense. When I don't specify the DB name, Grafana complains that there is no database connected.

Instructions probably need to be clearer that a InfluxDB database needs to be created before you can add it to Grafana

@ned14
Copy link
Author

ned14 commented Aug 18, 2022

I just got everything up and running, pretty time series graphs. I used https://github.com/Jepsson/esphome-influxdb as a custom component for esphome, the microcontroller now sends sensor readings direct to influxdb no home assistant needed. Very nice. Thanks for your work on this, it saved me a bunch of time arsing around getting docker influx and docker grafana etc etc to talk to each other and to have docker store the DB somewhere persistent. I just wanted to get it up and recording on a secure network, I didn't want to have to arse around with anything else probably much better practice in terms of security.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants