Reputation: 19725
I deployed InlfuxDB on AWS with docker.
Here is the docker compose:
version: '3.6'
services:
influxdb:
image: influxdb:1.7.4
restart: always
container_name: "influxdb"
volumes:
- ./influxDB/influxdb.conf:/etc/influxdb/influxdb.conf:ro
- ./influxDB/data:/var/lib/influxdb/
networks:
- influxdb
ports:
- "8086:8086"
networks:
influxdb:
name: influxdb
Instance is working fine.
In local, I deployed grafana, also with docker, and I was able to connect instance with those settings:
url: https://dev.influx.<company>.com
user: admin
pass: admin
db: company
But when I try to connect manually via Postman, with this url:
https://dev.influx.<company>.com/query --data-urlencode "q=SHOW MEASURES"
I get 502 Bad Gateway
I use Caddy as reverse proxy, and Caddy doesn't show logs when I run the query
What is happening ?
Upvotes: 0
Views: 2207
Reputation: 22592
I don't see how you're passing credentials on that curl request. Are you using basic auth on the Caddy proxy?
Also, the InfluxQL query is incorrect:
SHOW MEASUREMENTS
is the correct query
Upvotes: 1