tisonkun commented on code in PR #2190:
URL: https://github.com/apache/zookeeper/pull/2190#discussion_r1774307513
##########
zookeeper-docs/src/main/resources/markdown/zookeeperMonitor.md:
##########
@@ -41,11 +41,48 @@ All the metrics are included in the `ServerMetrics.java`.
<a name="Prometheus"></a>
+
+### Pre-requisites:
+- Enable the `Prometheus MetricsProvider` by setting the following in
`zoo.cfg`:
+ ```bash
+
metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider
+ ```
+
+- The port for Prometheus metrics can be configured using:
+ ```bash
+ metricsProvider.httpPort=7000 # Default port is 7000
+ ```
+
+#### Enabling HTTPS for Prometheus Metrics:
+ZooKeeper also supports SSL for Prometheus metrics, which provides secure data
transmission. To enable this, configure an HTTPS port and set up SSL
certificates as follows:
+
+- Define the HTTPS port:
+ ```bash
Review Comment:
````suggestion
```conf
````
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]