Jennifer88huang commented on a change in pull request #4910: [doc] Add a 
documentation page for metrics reference

 File path: site2/docs/
 @@ -0,0 +1,243 @@
+id: reference-metrics
+title: Pulsar Metrics
+sidebar_label: Pulsar Metrics
+<style type="text/css">
+  table{
+    font-size: 80%;
+  }
+Pulsar exposes metrics in Prometheus format that can be collected and used for 
monitoring the health of the cluster.
+* [ZooKeeper](#zookeeper)
+* [BookKeeper](#bookkeeper)
+* [Broker](#broker)
+## Overview
+The metrics exposed by Pulsar are in Prometheus format. The types of metrics 
+- [Counter]( a 
cumulative metric that represents a single monotonically increasing counter 
whose value can only increase or be reset to zero on restart.
+- [Gauge]( a *gauge* 
is a metric that represents a single numerical value that can arbitrarily go up 
and down.
+- [Histogram]( a 
histogram samples observations (usually things like request durations or 
response sizes) and counts them in configurable buckets.
+- [Summary]( 
similar to a histogram, a summary samples observations (usually things like 
request durations and response sizes). While it also provides a total count of 
observations and a sum of all observed values, it calculates configurable 
quantiles over a sliding time window.
+## ZooKeeper
+The zookeeper metrics are exposed under "/metrics" at port 8000. You can 
change the port by configuring a system
+property `stats_server_port` to use a different port.
+### Server metrics
+| Name | Type | Description |
+| zookeeper_server_znode_count | Gauge | Number of z-nodes stored. |
 Review comment:
   You can check and refine all similar cases.

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.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

Reply via email to