Collector Type: Agent

Category: Application Monitors

Application Name: ZooKeeper

Global Template Name: Linux - Zookeeper Template

Introduction

ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services and is monitored through JMX. All these services are used in some form or other by distributed applications. Each time the services are implemented, a lot of effort goes into fixing the bugs and race conditions that are inevitable. As a result, the applications initially usually skimp on the services, which makes them brittle in the presence of change and difficult to manage. ZooKeeper aims at distilling the essence of these different services into a very simple interface to a centralized coordination service. The service itself is distributed and highly reliable.

Prerequisite: Please refer JMX Monitoring to enable JMX in the java application

Parameters

NameDefault ValueDescription
IPAddress127.0.0.1IP Address on which the JMX listen
Port7199JMX Listener port
UsernameNAUsername, if enabled in JMX
PasswordNAPassword, if enabled in JMX
Java Bin PathjavaPassword, if enabled in JMX

Note: All field attributes are mandatory, use default values wherever applicable.

Collected Metrics

Metric NameDisplay NameDescription
zookeeper.bytes_receivedZooKeeper Total Bytes ReceivedThe number of bytes received.
zookeeper.bytes_sentZooKeeper Total Bytes SentThe number of bytes sent.
zookeeper.packets_receivedZooKeeper Total Packets ReceivedThe number of packets received.
zookeeper.packets_sentZooKeeper Total Packets sentThe number of packets sent.
zookeeper.connectionsZooKeeper Total ConnectionsThe total count of client connections.
zookeeper.latency.avgZooKeeper Average Request LatencyThe amount of time it takes for the server to respond to a client request.
zookeeper.latency.maxZooKeeper Max Request LatencyThe amount of time it takes for the server to respond to a client request.
zookeeper.latency.minZooKeeper Min Request LatencyThe amount of time it takes for the server to respond to a client request.
zookeeper.nodesZooKeeper Total Node CountThe number of znodes in the ZooKeeper namespace.
zookeeper.outstanding_requestsZooKeeper OutStanding RequestsThe number of queued requests when the server is under load and is receiving more sustained requests than it can process.
zookeeper.zxid.countZooKeeper Zxid CountZxid Count.
zookeeper.zxid.epochZooKeeper Zxid EpochZxid Epoch.