Monitor Type: collectd/zookeeper
(Source)
Accepts Endpoints: Yes
Multiple Instances Allowed: Yes
Monitors an Apache Zookeeper instance using the Zookeeper collectd plugin. This plugin is installed with the Smart Agent so no additional installation is required to use this monitor. Supports Zookeeper 3.4.0 or later.
To activate this monitor in the Smart Agent, add the following to your agent config:
monitors: # All monitor config goes under this key
- type: collectd/zookeeper
... # Additional config
For a list of monitor options that are common to all monitors, see Common Configuration.
Config option | Required | Type | Description |
---|---|---|---|
pythonBinary |
no | string |
Path to a python binary that should be used to execute the Python code. If not set, a built-in runtime will be used. Can include arguments to the binary as well. |
host |
yes | string |
Host or IP address of the Zookeeper node |
port |
yes | integer |
Main port of the Zookeeper node |
name |
no | string |
This will be the value of the plugin_instance dimension on emitted metrics, if provided. |
These are the metrics available for this monitor. Metrics that are categorized as container/host (default) are in bold and italics in the list below.
counter.zk_fsync_threshold_exceed_count
(cumulative)
Number of times fsync duration has exceeded warning thresholdcounter.zk_packets_received
(cumulative)
Count of the number of ZooKeeper packets received by a servercounter.zk_packets_sent
(cumulative)
Count of the number of ZooKeeper packets sent from a servergauge.zk_approximate_data_size
(gauge)
Size of data in bytes that a ZooKeeper server has in its data treegauge.zk_avg_latency
(gauge)
Average time in milliseconds for requests to be processedgauge.zk_ephemerals_count
(gauge)
Number of ephemeral nodes that a ZooKeeper server has in its data treegauge.zk_is_leader
(gauge)
1 if the node is a leader, 0 if the node is a followergauge.zk_max_file_descriptor_count
(gauge)
Maximum number of file descriptors that a ZooKeeper server can opengauge.zk_max_latency
(gauge)
Maximum time in milliseconds for a request to be processedgauge.zk_min_latency
(gauge)
Minimum time in milliseconds for a request to be processedgauge.zk_num_alive_connections
(gauge)
Number of active clients connected to a ZooKeeper servergauge.zk_open_file_descriptor_count
(gauge)
Number of file descriptors that a ZooKeeper server has opengauge.zk_outstanding_requests
(gauge)
Number of currently executing requestsgauge.zk_service_health
(gauge)
1 if server is running, otherwise 0gauge.zk_watch_count
(gauge)
Number of watches placed on Z-Nodes on a ZooKeeper servergauge.zk_znode_count
(gauge)
Number of z-nodes that a ZooKeeper server has in its data tree
The following information applies to the agent version 4.7.0+ that has
enableBuiltInFiltering: true
set on the top level of the agent config.
To emit metrics that are not default, you can add those metrics in the
generic monitor-level extraMetrics
config option. Metrics that are derived
from specific configuration options that do not appear in the above list of
metrics do not need to be added to extraMetrics
.
To see a list of metrics that will be emitted you can run agent-status monitors
after configuring this monitor in a running agent instance.
The following information only applies to agent version older than 4.7.0. If
you have a newer agent and have set enableBuiltInFiltering: true
at the top
level of your agent config, see the section above. See upgrade instructions in
Old-style whitelist filtering.
If you have a reference to the whitelist.json
in your agent's top-level
metricsToExclude
config option, and you want to emit metrics that are not in
that whitelist, then you need to add an item to the top-level
metricsToInclude
config option to override that whitelist (see Inclusion
filtering. Or you can just
copy the whitelist.json, modify it, and reference that in metricsToExclude
.