momo-jun commented on code in PR #15447:
URL: https://github.com/apache/pulsar/pull/15447#discussion_r866467284
##########
site2/docs/reference-metrics.md:
##########
@@ -117,6 +117,34 @@ The following metrics are available for broker:
- [Pulsar SQL Worker](#pulsar-sql-worker)
- [Pulsar transaction](#pulsar-transaction)
+### Broker metrics
+All the broker metrics are labelled with the following labels:
+- cluster: cluster=${pulsar_cluster}. ${pulsar_cluster} is the cluster name
that you have configured in the `broker.conf` file.
+
+| Name | Type | Description |
+|---|---|---|
+| pulsar_ml_cache_evictions | Gauge | The number of cache evictions during
the last minute. |
+| pulsar_ml_cache_hits_rate | Gauge | The number of cache hits per second on
the broker side. |
+| pulsar_ml_cache_hits_throughput | Gauge | The amount of data is retrieved
from the cache on the broker side (in byte/s). |
+| pulsar_ml_cache_misses_rate | Gauge | The number of cache misses per second
on the broker side. |
+| pulsar_ml_cache_misses_throughput | Gauge | The amount of data is not
retrieved from the cache on the broker side (in byte/s). |
Review Comment:
```suggestion
| pulsar_ml_cache_misses_throughput | Gauge | The amount of data (byte per
second) that cannot be retrieved from the cache on the broker side. |
```
##########
site2/docs/reference-metrics.md:
##########
@@ -117,6 +117,34 @@ The following metrics are available for broker:
- [Pulsar SQL Worker](#pulsar-sql-worker)
- [Pulsar transaction](#pulsar-transaction)
+### Broker metrics
+All the broker metrics are labelled with the following labels:
+- cluster: cluster=${pulsar_cluster}. ${pulsar_cluster} is the cluster name
that you have configured in the `broker.conf` file.
+
+| Name | Type | Description |
+|---|---|---|
+| pulsar_ml_cache_evictions | Gauge | The number of cache evictions during
the last minute. |
+| pulsar_ml_cache_hits_rate | Gauge | The number of cache hits per second on
the broker side. |
+| pulsar_ml_cache_hits_throughput | Gauge | The amount of data is retrieved
from the cache on the broker side (in byte/s). |
+| pulsar_ml_cache_misses_rate | Gauge | The number of cache misses per second
on the broker side. |
Review Comment:
```suggestion
| pulsar_ml_cache_misses_rate | Gauge | The number of cache missed per
second on the broker side. |
```
--
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]