Closed gbhrdt closed 5 years ago
Description
The /metrics endpoint is not reachable for me. I'm using docker swarm.
/metrics
Steps to reproduce the issue:
STATS_USER
STATS_PASS
NODE_IP:80/metrics
When I also set STATS_URI="/metrics", it just shows the regular HAProxy Stats Page.
STATS_URI="/metrics"
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.
The metrics are exposed on port 8080.
@thomasjpfan Thanks, that's working like a charm! I think port 8080 is nowhere mentioned in the docs. Might also have missed it.
Description
The
/metrics
endpoint is not reachable for me. I'm using docker swarm.Steps to reproduce the issue:
STATS_USER
andSTATS_PASS
NODE_IP:80/metrics
in browserWhen 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.