Documentation ¶
Overview ¶
Package mntr fetches metrics from ZooKeeper by using the mntr command which was added to ZooKeeper in version 3.4.0.
See the mntr command documentation at https://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html
ZooKeeper mntr Command Output
$ echo mntr | nc localhost 2185 zk_version 3.4.8--1, built on 02/06/2016 03:18 GMT zk_avg_latency 0 zk_max_latency 0 zk_min_latency 0 zk_packets_received 10 zk_packets_sent 9 zk_num_alive_connections 1 zk_outstanding_requests 0 zk_server_state standalone zk_znode_count 4 zk_watch_count 0 zk_ephemerals_count 0 zk_approximate_data_size 27 zk_open_file_descriptor_count 25 zk_max_file_descriptor_count 1048576
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MetricSet ¶
type MetricSet struct {
mb.BaseMetricSet
}
MetricSet for fetching ZooKeeper health metrics.
Click to show internal directories.
Click to hide internal directories.