tisonkun commented on code in PR #2190:
URL: https://github.com/apache/zookeeper/pull/2190#discussion_r1774306903


##########
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
+  ```

Review Comment:
   ````suggestion
   - The port for Prometheus metrics can be configured using (default to 7000):
     ```conf
     metricsProvider.httpPort=7000
     ```
   ````



-- 
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]

Reply via email to