veepee-oss / influxdb-relay

Service to replicate InfluxDB data for high availability.
MIT License
199 stars 47 forks source link

Seems always doing TLS verification #30

Open zhangxin511 opened 5 years ago

zhangxin511 commented 5 years ago

I am running as docker container, It seems not matter how I configure the skip-tls-verification, it always check the certs validation.

This is partial of the configure file:

[[http.output]]
name = "influxdb01"
location = "https://Some_Silly_Cert_Influx01:8086/"
skip-tls-verification = true
endpoints = {write="/write", write_prom="/api/v1/prom/write", ping="/ping", query="/query"}
timeout = "10s"
λ curl -G "http://127.0.0.1:9090/health"
{"status":"critical","problem":{"influxdb01":"KO. Get https://Some_Silly_Cert_Influx01:8086/ping: x509: certificate signed by unknown authority","influxdb02":"KO. Get https://Some_Silly_Cert_Influx02:8086/ping: x509: certificate signed by unknown authority"}}

Any helps?

damoun commented 4 years ago

You're right, the /health and /admin endpoint doesn't use the skip-tls-verification. We will fix it ASAP, thanks