From 84f987f9dc4c883ee2192f6b2edfd79d7fe1bcfa Mon Sep 17 00:00:00 2001 From: Dmitry Andronov Date: Fri, 22 May 2020 11:11:11 +0800 Subject: [PATCH] change default listen port to 9141 to align with https://github.com/prometheus/prometheus/wiki/Default-port-allocations --- README.md | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 85e391f..c8ba729 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ To build image with different name, pass it to `build.sh` as a first arg. ``` Usage of zookeeper-exporter: -listen string - address to listen on (default "0.0.0.0:8080") + address to listen on (default "0.0.0.0:9141") -location string metrics location (default "/metrics") -timeout int diff --git a/main.go b/main.go index 3841b5f..ba80c8f 100644 --- a/main.go +++ b/main.go @@ -14,7 +14,7 @@ import ( func main() { location := flag.String("location", "/metrics", "metrics location") - listen := flag.String("listen", "0.0.0.0:8080", "address to listen on") + listen := flag.String("listen", "0.0.0.0:9141", "address to listen on") timeout := flag.Int64("timeout", 30, "timeout for connection to zk servers, in seconds") host := flag.String("zk-host", "127.0.0.1", "zookeeper host") port := flag.String("zk-port", "2181", "zookeeper port")