ZooKeeper指标

本文介绍ZooKeeper指标的详细信息。

ZooKeeper指标包含以下部分:

Important metrics

参数

指标

描述

AvgLatency

zk_avg_latency。

Zookeeper平均请求延迟。单位:ms。

MaxLatency

zk_max_latency

Zookeeper最大请求延迟。单位:ms。

MinLatency

zk_min_latency

Zookeeper最小请求延迟。单位:ms。

PacketsReceived

zk_packets_received

Zookeeper接收的包。

PacketsSent

zk_packets_sent

Zookeeper发送的包。

zk count info

参数

指标

描述

AliveConnections

zk_num_alive_connections

ZooKeeper存活的连接数。

OutstandingRequestsCount

zk_outstanding_requests

ZooKeeper排队请求的数量,当ZooKeeper超过了它的处理能力时,这个值会增大。

ZnodeCount

zk_znode_count

Zookeeper Znode的数量。

WatchCount

zk_watch_count

Zookeeper Watch的数量。

ApproximateDataSize

zk_approximate_data_size

ZooKeeper大致的数据大小。单位:Byte。

OpenFileDescriptorCount

zk_open_file_descriptor_count

ZooKeeper打开文件数量。

MaxFileDescriptorCount

zk_max_file_descriptor_count

ZooKeeper最大允许打开的文件数。

SyncedFollowers Count

zk_synced_followers

同步的ZooKeeper服务数量。

NodeStatus

zk_node_status

ZooKeeper节点状态。

  • -1:节点不可用。

  • 0:Follower。

  • 1:Leader。