consul behind a reverse proxy. if i set the server like this
- server: 'host.docker.internal/consul'
log below
level=error ts=2019-12-04T07:34:11.344Z caller=consul.go:269 
component="discovery manager scrape" discovery=consul msg="Error retrieving 
datacenter name" err="Get 
http://host.docker.internal%2Fconsul/v1/agent/self: dial tcp: lookup 
host.docker.internal/spring-boot-admin-server: no such host"
the slash in path was escaped to %2F .
curl http://host.docker.internal/consul/v1/agent/self could show the result

issue 6404 <https://github.com/prometheus/prometheus/issues/6404>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/460b3cdb-b260-4b03-ad51-b612641f0e3en%40googlegroups.com.

Reply via email to