Skip to content

Setup a Monitoring of an Apache Zookeeper

Teskalabs LogMan.io is set up to monitor internal ZooKeeper cluster. Metrics are collected using Telegraf, InfluxDB is used to store the metrics, and Grafana is used to visualize the data.

To ensure that the ZooKeeper cluster is properly monitored, mntr command must be enabled in the zoo.cfg configuration file (replace zookeeper-x with the name of your ZooKeeper container):

cat /data/hdd/zookeeper-x/conf/zoo.cfg

You should see the following line in the configuration file:

4lw.commands.whitelist=stat, ruok, conf, isrom , ..., mntr

If the mntr command is not enabled, add it to the 4lw.commands.whitelist property in the zoo.cfg file. After making changes to the configuration file, restart the ZooKeeper service to apply the changes:

docker restart zookeeper-x

Open Grafana and navigate to the dashboard ZooKeeper Overview to view the monitoring metrics. You should see various metrics related to your ZooKeeper cluster, such as server status, latency, and request rates.

ZooKeeper Monitoring