diff options
author | shoothzj <shooothzj@gmail.com> | 2021-05-17 23:10:41 +0800 |
---|---|---|
committer | maoling <maoling@apache.org> | 2021-05-17 23:10:41 +0800 |
commit | b79abb2014db9684c00afd7d98c0a7cb69ce6c8b (patch) | |
tree | e720c7843877241e34905022d9f2d1c2886bb1f5 /conf | |
parent | fdbba27088335c79fac4cc1751c06dcada1b8751 (diff) | |
download | zookeeper-b79abb2014db9684c00afd7d98c0a7cb69ce6c8b.tar.gz |
ZOOKEEPER-4054: Make prometheus listen host can configure
Make prometheus listen host can configure listen IP, helpful to security. default is 0.0.0.0
Author: shoothzj <shooothzj@gmail.com>
Reviewers: Enrico Olivelli <eolivelli@apache.org>, maoling <maoling@apache.org>
Closes #1574 from Shoothzj/ZOOKEEPER-4054
Diffstat (limited to 'conf')
-rw-r--r-- | conf/zoo_sample.cfg | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/zoo_sample.cfg b/conf/zoo_sample.cfg index 24a97d720..f221675ee 100644 --- a/conf/zoo_sample.cfg +++ b/conf/zoo_sample.cfg @@ -31,6 +31,7 @@ clientPort=2181 # # https://prometheus.io Metrics Exporter #metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider +#metricsProvider.httpHost=0.0.0.0 #metricsProvider.httpPort=7000 #metricsProvider.exportJvmInfo=true |