docker-flow / docker-flow-proxy

Docker Flow Proxy
https://docker-flow.github.io/docker-flow-proxy/
MIT License
317 stars 189 forks source link

/metrics endpoint not reachable #92

Closed gbhrdt closed 5 years ago

gbhrdt commented 5 years ago

Description

The /metrics endpoint is not reachable for me. I'm using docker swarm.

Steps to reproduce the issue:

  1. Set STATS_USER and STATS_PASS
  2. Access NODE_IP:80/metrics in browser

When I also set STATS_URI="/metrics", it just shows the regular HAProxy Stats Page.

Describe the results you received:

Error 503 for direct access via IP + "/metrics" and error 404 for existing service domains + "/metrics".

Describe the results you expected:

Metrics to be exported into Prometheus.

Additional information you deem important (e.g. issue happens only occasionally):

It would also be great if we could specify a custom Service Domain for the aggregated Metrics.

Additional environment details (AWS, VirtualBox, physical, etc.):

Docker Swarm with Replicated HAProxy Service.

thomasjpfan commented 5 years ago

The metrics are exposed on port 8080.

gbhrdt commented 5 years ago

@thomasjpfan Thanks, that's working like a charm! I think port 8080 is nowhere mentioned in the docs. Might also have missed it.