Skip to content

ZooKeeper

Open Source

This ZenPack is developed and supported by Zenoss Inc. Contact Zenoss to request more information regarding this or any other ZenPacks. Click here to view all available Zenoss Open Source ZenPacks.

Organization:

Zenoss, Inc.

License:

GNU General Public License, Version 2, or later

Name:

ZenPacks.zenoss.ZooKeeper

More Information:

GitHub page/HomePage

Git Sources (For Cloning):

Link

Applications Monitored:

Apache ZooKeeper

ZooKeeper ZenPack

Monitoring of Apache ZooKeeper nodes and clusters.

Support

This is an Open Source ZenPack developed by Zenoss, Inc. Enterprise support for this ZenPack is available to commercial customers with an active subscription.

Releases

Version 1.0.0- Download: Released on 2014/09/05: Requires PythonCollector ZenPack: Compatible with Zenoss Core 4.2.x, Zenoss Resource Manager 4.2.x

Background

The ZenPacks.zenoss.ZooKeeper ZenPack monitors Apache ZooKeeper server via Twisted client TCP connection.

Features

The features added by this ZenPack can be summarized as follows. They are each detailed further below.

  • Discovery and periodic remodeling of ZooKeeper component.
  • Performance monitoring.
  • Event monitoring.
  • Optional service impact with addition of Zenoss Service Dynamics product.

Discovery

The following component will be automatically discovered through the ZooKeeper port you provide:

ZooKeeper: Attributes: Name, Mode, Status, Node Count, ZooKeeper Version, Zxid

Performance Monitoring

The following metrics will be collected and graphed every 5 minutes by default:

ZooKeeper: Metrics: Outstanding Requests, Received/Sent Packets, Connections, Avg/Min/Max Latencies

Event monitoring

The following events will be triggered:

ZooKeeper: Error: Incorrect port supplied or connection refused.

Service Impact

When combined with the Zenoss Service Dynamics product, this ZenPack adds built-in service impact capability for ZooKeeper. The following service impact relationships are automatically added. These will be included in any services containing one or more of the explicitly mentioned entities.

Service Impact Relationships
  • ZooKeeper is affected by hosting Device failure.
External Impact Relationships
  • ZooKeeper failure affects associated Hadoop Data Node, Secondary Name Node, Job Tracker, Task Tracker, Resource Manager, Node Manager and Job History.

Usage

Use the following steps to start monitoring ZooKeeper server:

  1. Select Infrastructure from the navigation bar.
  2. Click the device name in the device list. The device overview page appears.
  3. Select Configuration Properties from the left panel.
  4. Set zZooKeeperPort if ZooKeeper port differs from the default one (2181).
  5. Navigate to the Modeler plugins page of the device containing your ZooKeeper server and add the ZooKeeperCollector modeler plugin.
  6. Select Model device from the gear menu.

Alternatively you can use zenbatchload to add ZooKeeper monitoring servers from the command line. To do this, you must create a text file with hostname and ZooKeeper port of all the servers you want to add. The devices should be added under the target machine device class (e.g. '/Devices/Server/Linux' in the example below).

/Devices/Server/Linux zCollectorPlugins=['ZooKeeperCollector']
<HOST NAME> zZooKeeperPort='2181'

You can then load the ZooKeeper monitoring servers into Zenoss Core or Resource Manager as devices with the following command.

$ zenbatchload <filename>

Troubleshooting

Please refer to the Zenoss Service Dynamics documentation if you run into any of the following problems:

  • ZenPack will not install
  • Adding a device fails
  • Don't understand how to add a device
  • Don't understand how to model a device

If you cannot find the answer in the documentation, then Resource Manager (Service Dynamics) users should contact Zenoss Customer Support. Core users can use the #zenoss IRC channel or the community.zenoss.org forums.

Installed Items

Installing this ZenPack will add the following items to your Zenoss system.

Modeler Plugins
  • ZooKeeperCollector
Monitoring Templates
  • ZooKeeper (in /Device)
Component Types
  • ZooKeeper (on related device)

Daemons

Type Name
Performance Collector zenpython

Changes

1.0.0
  • Initial release

Attachments: