Skip to content

Commit

Permalink
Update default port to 9381
Browse files Browse the repository at this point in the history
9381 was allocated on https://github.com/prometheus/prometheus/wiki/Default-port-allocations, update code and docs to use it
  • Loading branch information
prymitive committed Jul 18, 2017
1 parent 8eec2d1 commit 71eee2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -9,6 +9,6 @@ RUN go install \
github.com/cloudflare/kafka-zookeeper-exporter && \
rm -fr /go/src

EXPOSE 8080
EXPOSE 9381

CMD ["kafka-zookeeper-exporter"]
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -20,7 +20,7 @@ To see the list of avaiable flags run

Send a request to collect metrics

curl localhost:8080/kafka?target=10.0.0.1:2181&chroot=/kafka/cluster&topics=mytopic1,mytopic2
curl localhost:9381/kafka?target=10.0.0.1:2181&chroot=/kafka/cluster&topics=mytopic1,mytopic2

Where:

Expand Down
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -24,7 +24,7 @@ const (
var (
version = "unknown"

listenAddress = flag.String("web.listen-address", ":8080", "Address to listen on for web interface and telemetry.")
listenAddress = flag.String("web.listen-address", ":9381", "Address to listen on for web interface and telemetry.")
serverTimeout = flag.Duration("web.timeout", 60*time.Second, "Timeout for responding to HTTP requests.")
zkTimeout = flag.Duration("zk.timeout", 5*time.Second, "Timeout for ZooKeeper requests")
showVersion = flag.Bool("version", false, "Show version and exit")
Expand Down

0 comments on commit 71eee2b

Please sign in to comment.