Hi there,
I am setting up my first docker with Grafana, Telegraf and Influx DB I have grafana working with no issues on the docker and I am able to access the web UI, When I attempt to add the DataSource I am presented with a Network Error: Bad Gateway(502) I have tried using the direct IP of the server with the host, I have tried using the http://influxdb:8086/ and I have tried http://localhost:8086/ and nothing seems to work.
I am running on CentOs 8
I am new to this so please let me know if you need more details
I have tested that the influx DB is working with the below
Influx DB Test
curl -sl -I http://172.105.175.236:8086/ping HTTP/1.1 204 No Content Content-Type: application/json Request-Id: f9c5bd08-c24a-11ea-84a1-0242ac130002 X-Influxdb-Build: OSS X-Influxdb-Version: 1.8.0 X-Request-Id: f9c5bd08-c24a-11ea-84a1-0242ac130002 Date: Fri, 10 Jul 2020 01:16:26 GMT
Docker PS
[root@li2084-236 ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 47044bdc9000 grafana/grafana "/run.sh" 4 hours ago Up 4 hours 0.0.0.0:3000->3000/tcp grafana c3fd08530766 influxdb "/entrypoint.sh infl…" 4 hours ago Up 4 hours 0.0.0.0:8086->8086/tcp influxdb