I am running InfluxDB and Grafana in docker, and running the Telegraf agent on bare metal.
I am mounting directories to
/etc/influxdb on the docker container, but every time I spin up the container, my configurations disappeared. There’s no files in the mounted directories. Grafana on the other hand maintains a persistent config through the mounted directories.
Also I was only able to actually see data from docker once. Every time I try to set things up now, it does not work. I spin up InfluxDB, create the Org and Bucket, and configure a Telegraf data source. Usually when I check for connections it immediately finds the Telegraf instance.
I try to explore the data, and I get
Failed to load buckets.
My logs for Telegraf say
[agent] Error writing to outputs.influxdb: could not write any address [outputs.influxdb] Metric buffer overflow; 23 metrics have been dropped [outputs.influxdb] when writing to [http://localhost:9999]: 200 OK
I have no idea how to fix this. If I replace
localhost with the IP that is generated in by the data source, I get permissions errors.
[outputs.influxdb_v2] when writing to [http://10.1.10.151:9999]: failed to write metric: unauthorized: unauthorized access
When I try and “Test” the influxDB datasource in Grafana, I get
Network Error: Bad Gateway(502).