Enable Prometheus metrics in Zookeeper too

This commit is contained in:
Joshua Boniface 2023-12-10 00:32:37 -05:00
parent 513313d60f
commit 54bf70d336
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ maxClientCnxns=200
autopurge.snapRetainCount=3 autopurge.snapRetainCount=3
autopurge.purgeInterval=1 autopurge.purgeInterval=1
# Enable Prometheus metrics
metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider
metricsProvider.httpPort=9181
# Listen on port 2181 on the cluster IP # Listen on port 2181 on the cluster IP
clientPort=2181 clientPort=2181
clientPortAddress={% for node in pvc_nodes if node.hostname == this_node %}{{ node.cluster_ip }}{% endfor %} clientPortAddress={% for node in pvc_nodes if node.hostname == this_node %}{{ node.cluster_ip }}{% endfor %}