Error is “grafana_1 | logger=context traceID=00000000000000000000000000000000 userId=1 orgId=1 uname=admin t=2022-06-13T23:26:34.93+0000 lvl=eror msg=“Request Completed” method=GET path=/api/datasources/proxy/1/query status=502 remote_addr=10.2.21.152 time_ms=88 duration=88.822759ms size=0 referer=http://:3000/datasources/edit/P4B5EB7AC8565B06F traceID=00000000000000000000000000000000”
Docker-compose.yml is:
version: '2'
services:
influxdb:
image: influxdb:1.8
ports:
- '8086:8086'
networks:
- bridge
volumes:
- influxdb-storage:/var/lib/influxdb
environment:
- INFLUXDB_DB=sensors
- INFLUXDB_HTTP_AUTH_ENABLED=true
- INFLUXDB_ADMIN_USER=admin
- INFLUXDB_ADMIN_PASSWORD=changeme
grafana:
image: grafana/grafana:latest
ports:
- '3000:3000'
networks:
- bridge
volumes:
- grafana-storage:/var/lib/grafana
- ./provisioning/:/etc/grafana/provisioning
#depends_on:
# - influxdb
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=changeme
volumes:
influxdb-storage:
grafana-storage:
networks:
bridge:
./provisioning/datasources/influxdb.yml
apiVersion: 1
datasources:
- name: InfluxDB_v1
type: influxdb
access: proxy
database: sensors
user: admin
url: http://localhost:8086
jsonData:
httpMode: GET
secureJsonData:
password: changeme
The error is: