ZooKeeper is a centralized server used for maintaining configuration information, naming, providing distributed synchronization, and providing group services. All of these kinds of services are used in some form or another by distributed applications. For more information, visit zookeeper.apache.org.
Even if the Zookeeper plugin is not configured, Cloud Monitoring discovers ZooKeeper services running in your Google Cloud project by:
- searching instance names for zookeeper
- checking for ports opened to 2181 via firewall rules
The services discovered are displayed on the ZooKeeper Services page in the Resources menu. After you install the monitoring agent and configure the ZooKeeper plugin on your instances, Monitoring populates the ZooKeeper Services page with inventory and metrics.
Configuring Monitoring to monitor ZooKeeper
After you install the monitoring agent, use the following instructions to configure the ZooKeeper plugin on your instances.
Enabling the ZooKeeper monitoring plugin
Cloud Monitoring supports monitoring ZooKeeper version 3.4.0 and higher. The configuration files contain instructions on handling non-standard ports.
(cd /opt/stackdriver/collectd/etc/collectd.d/ && sudo curl -O https://raw.githubusercontent.com/Stackdriver/stackdriver-agent-service-configs/master/etc/collectd.d/zookeeper.conf)
After adding the configuration file, restart the monitoring agent by running the following command:
sudo service stackdriver-agent restart
For more information on the
zookeeper plugin, see
What is monitored
The full list of metrics the Zookeeper plugin monitors is at Agent metrics: zookeeper.