9 zookeeper集群监控
约 161 字小于 1 分钟
9 zookeeper集群监控
zabbix旧版本可以用,新版本建议用官方模板
Zabbix-Zookeper-Template
System requirements
- zabbix >= 3.4 (preprocessing used by this template)
- zookeeper >= 3.4 (mntr stats)
- netcat
- zookeeper监控模板,被监控主机,记得添加nc命令
Features
ruok check
mntr stats :
- zk_num_alive_connections
- zk_approximate_data_size
- zk_ephemerals_count
- zk_min_latency
- zk_avg_latency
- zk_max_latency
- zk_max_file_descriptor_count
- zk_open_file_descriptor_count
- zk_outstanding_requests
- zk_packets_received
- zk_packets_sent
- zk_server_state
- zk_version
- zk_znode_count
graphs
screen
Zabbix Macros
- {$ZOO_IP} : IP of the Zookeeper Instance (default : 127.0.0.1)
- {$ZOO_PORT} : Port of the Zookeeper Instance (default : 2181)
Zabbix Configuration
Copy
UserParameter_Zookeeper.conf
to/etc/zabbix/zabbix_agentd.d
folder (or whatever is default and/or configured on your system).Restart your Zabbix Agent
Import XML template file (
zookeeper.xml
) into Zabbix via Web GUI (Configuration -> Templates -> Import).Assign the imported template to a host, change MACROS if needed in the host parameters and enjoy!