ZooKeeper plugin

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.

Discovery

Even if the Zookeeper plugin is not configured, Stackdriver Monitoring discovers ZooKeeper services running in your Google Cloud Platform 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

Stackdriver Monitoring supports monitoring ZooKeeper version 3.4.0 and higher. The configuration files contain instructions on handling non-standard ports.

On your VM instance, download zookeeper.conf from the GitHub configuration repository and place it in the directory /opt/stackdriver/collectd/etc/collectd.d/:

(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 collectd zookeeper plugin, see Plugin: zookeeper.

What is monitored

The full list of metrics the Zookeeper plugin monitors is at Agent metrics: zookeeper.

Оцените, насколько информация на этой странице была вам полезна:

Оставить отзыв о...

Текущей странице
Stackdriver Monitoring
Нужна помощь? Обратитесь в службу поддержки.