Zookeeper Monitoring User Guide

General information

Overview

Zookeeper monitoring is a Gateway configuration file that enables monitoring of the Zookeeper Replicas through a set of samplers with customised JMX plug-in settings.

Zookeeper is a distributed process that allows deployment configurations and can be used as a container manager. It has a built-in load balancing capability that can manage multiple services in different machines simultaneously.

Track the following key areas when using Zookeeper monitoring:

Key Area Description
Replica configuration Refers to the configuration settings the users can set.
Replica statistics Replica metrics that provide information about the overall health of the Zookeeper Ensemble.
   

This guide discusses the steps to set up the Zookeeper integration on a Gateway. Once the integration is set up, the samplers providing the dataviews become available to that Gateway.

To view the sample metrics and dataviews, see Zookeeper Monitoring Technical Reference.

User requirements

This monitoring template is a Gateway configuration setup that can be included in the Gateway Setup Editor.

To use this template, your configuration must meet the following requirements:

  • An Active Console 2 that is connected to the Gateway.
  • A JMX-enabled Zookeeper Ensemble.
  • Zookeper configuration files extracted to their Gateway set-up.

System requirements

The following requirements must be met prior to the installation and setup of the template:

  • Template package: geneos-integration-zookeeper-<version>.zip.
  • A Managed entity for each monitored Replica (node) in the Zookeeper ensemble.
  • Netprobe version 4.5 or higher.

Note: This template is verified to be working with Zookeeper version 3.4.11.

Audience

This document is a reference guide to introduce templates and scripts built using the Geneos development toolkit plug-ins.

The template allows you to integrate specific applications and services to collect metrics without having to create a new plug-in.

 

Install and set up

Ensure that you have read and can follow the system requirements prior to installation and setup of this integration template.

  1. Download the config file (geneos-integration-zookeeper-<version>.zip) from the ITRS Downloads site.
  2. Open Active Console 2.
  3. Extract the Zookeeper monitoring configuration file into the Gateway Setup directory.
  4. Click Includes to create a new file in the Navigation panel.
  5. Enter the location of the file to include in the Location field. In this example, use the include/ZookeeperMonitoring.xml:
  6. Note: The priority controls the importance of a file when merging. Sections in a higher priority file will take precedence over sections in a lower priority file. This priority setting affects the priority of configuration in the main setup file.

  7. Expand the file location in the Includes section.
  8. Select Click to load...
  9. Click Yes to load the new Zookeeper include file.
  10. Click Managed entities in the Navigation panel.
  11. Add the Zookeeper-Replica type to the Managed Entity section that you will use to monitor Zookeeper.
  12. Click the Validate button to check your configuration.

The Validate button allows you to check if there are any errors or warnings in your configuration set-up.

Once the Gateway configuration appears in the Includes section, you can add the samplers and other variables.

 

Set up the samplers

These are the pre-configured samplers available to use in ZookeeperMonitoring.xml.

Configure the required fields by referring to the table below:

Samplers
Zookeeper-ReplicaCfg
Zookeeper-ReplicaStats
 

Set up the variables

The ZookeeperMonitoring.xml template provides the following variables that are set in the Environments section:

Variable Description
ZOOKEEPER_JMX_HOST IP/Hostname of the Zookeeper Replica.
 
Default: localhost
Mandatory: Yes
ZOOKEEPER_JMX_PORT JMX port of the Zookeeper Replica.
 
Default: 6790
Mandatory: Yes
ZOOKEEPER_MYID MYID of the Zookeeper Replica.
 
Default: 1
Mandatory: Yes
ZOOKEEPER_MONITORING_GROUP_NAME Sampler group name.
 
Mandatory: No
ZOOKEEPER_REPLICA_CFG_SAMPLING_INTERVAL Sampler interval of ReplicaCfg.
 
Mandatory: No
ZOOKEEPER_REPLICA_STATS_SAMPLING_INTERVAL Sampler interval of ReplicaStats.
 
Mandatory: No
   

After checking and saving the changes, the samplers you have set in the Gateway configuration display in Active Console 2.

Set up the rules

The Zookeeper-SampleRules.xml template also provides a separate sample rules that you can use to configure the Gateway Setup Editor.

Your configuration rules must be set in the Includes section.

  1. Enter the location of the file to include in the Location field. In this example, use the include/Zookeeper-SampleRules.xml:
  2. Note: The priority controls the importance of a file when merging. Sections in a higher priority file will take precedence over sections in a lower priority file. This priority setting affects the priority of configuration in the main setup file.

  3. Expand the file location in the Includes section.
  4. Select Click to load...
  5. Click Yes to load the new Zookeeper include rules file.
  6. Click Rules in the Navigation panel to create new rules.

The table below shows the included rule set-up in the configuration file that sets the severity rules and triggers alerts to:

Rules Description
Zookeeper-ReplicaStats-HighLatency Monitor the server response time.
Zookeeper-ReplicaStats-HighOutstandingRequests Detect any pending requests in the server, and if they exceed the provided limit.
Zookeeper-ReplicaStats-NoWatchers Notify when the monitored Replica has no watchers.
Zookeeper-ReplicaStats-NoZNodes Notify when the monitored Replica has no znodes.
   

Once the Gateway for rules configuration appears in the SampleRules section, you can set the rules and alerts.