The [`pulsar-admin`](../../reference/CliTools#pulsar-admin) tool
Pulsar {% popover broker %} metrics can be collected from brokers and exported in JSON format. There are two main types of metrics:
**Destination dumps*, which containing stats for each individual topic. They can be fetched using
```shell
bin/pulsar-admin broker-stats destinations
```
* Broker metrics, containing broker info and topics stats aggregated at namespace
level:
```shell
bin/pulsar-admin broker-stats monitoring-metrics
```
All the message rates are updated every 1min.
### BookKeeper stats
There are several stats frameworks that works with BookKeeper and that can be enabled by changing the `statsProviderClass` in `conf/bookkeeper.conf`.
By following the instructions above, the `DataSketchesMetricsProvider` will be enabled. It features a very efficient way to compute latency quantiles, along with rates and counts.
The stats are dumped every interval into a JSON file that is overwritten each time.
created at <ahref="https://developer.yahoo.com/open-source/">Yahoo</a> and now part of the <ahref="https://apache.org">Apache Software Foundation</a>.</p>
<pclass="button-group lead">
<aclass="btn btn-pulsar btn-lg"href="/docs/latest"role="button">Read the docs</a>
<aclass="btn btn-pulsar btn-lg"href="/docs/latest/getting-started/LocalCluster/"role="button">Read the docs</a>