Pulsar/BookKeeper 都提供了 Prometheus 接口,相关统计指标可以直接使用 Http 方式获取并直接对接 Prometheus/Grafana。
此外 StreamNative 提供了 Pulsar Manager 用于更直观地对 Pulsar 进行监控。
streamnative/pulsar-manager
一些比较关键的 Pulsar 监控指标如下:
Pulsar Broker
- jvm heap/gc
- bytes in per broker
- message in per broker
- loadbalance
- broker 端 Cache 命中率
- bookie client quarantine ratio
- bookie client request queue
BookKeeper
- bookie request queue size
- bookie request queue wait time
- add entry 99th latency
- read entry 99th latency
- journal create log latency
- ledger write cache flush latency
- entry read throttle
ZooKeeper
- local/global ZooKeeper read/write request latency