summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorshoothzj <shooothzj@gmail.com>2021-05-17 23:10:41 +0800
committermaoling <maoling@apache.org>2021-05-17 23:10:41 +0800
commitb79abb2014db9684c00afd7d98c0a7cb69ce6c8b (patch)
treee720c7843877241e34905022d9f2d1c2886bb1f5 /conf
parentfdbba27088335c79fac4cc1751c06dcada1b8751 (diff)
downloadzookeeper-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.cfg1
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