dabealu / zookeeper-exporter

zookeeper exporter for prometheus
MIT License
139 stars 74 forks source link

HTTP 404 while trying to access the metrics #13

Closed vijaychhipa closed 5 years ago

vijaychhipa commented 5 years ago

I started a local standalone Zookeeper instance of port 2181. Then build this source and created the container.

When I run it like this:

docker run dabealu/zookeeper-exporter:latest -listen=127.0.0.1:8080
2019/08/15 04:20:41 zookeeper addresses [127.0.0.1:2181]
2019/08/15 04:20:41 starting serving metrics at 127.0.0.1:8080/metrics

When I try to access the metrics: curl -s 127.0.0.1:8080/metrics

Error 404 Not Found

HTTP ERROR 404

Problem accessing /metrics. Reason:

    Not Found


Powered by Jetty:// 9.4.17.v20190418
dabealu commented 5 years ago

Hi @vijaychhipa, looks like you're already running some Java application using Jetty app server on 8080 port, which is pointed in the error page: Powered by Jetty:// 9.4.17.v20190418. Please stop this app first and restart exporter, or chose another port to run exporter by using --listen flag, e.g. --listen=0.0.0.0:8090