visit
Monitoring performance metrics for Zookeeper is necessary to ensure that all the jobs are running as expected and the clusters are humming. The following metrics categories are monitored using this configuration:
C:\Program Files\observIQ OpenTelemetry Collector\config.yaml
(Windows)
/opt/observiq-otel-collector/config.yaml
(Linux)
Receiver Configuration:
collection_interval
attribute. It is set to 60 seconds in this sample configuration.endpoint
attribute as the system that is running the Hadoop instancereceivers:
zookeeper:
collection_interval: 30s
endpoint: localhost:2181
Processor Configuration:
The resource detection processor
is used to create a distinction between metrics received from multiple Hadoop systems. This helps with filtering metrics from specific Redis hosts in the monitoring tool, in this case, Google Cloud operations.
processors:
resourcedetection:
detectors: ["system"]
system:
hostname_sources: ["os"]
batch:
Exporter Configuration:
In this example, the metrics are exported to New Relic using the OTLP exporter. If you would like to forward your metrics to a different destination, check the destinations that OpenTelemetry supports at this time, .
exporters:
otlp:
endpoint: //otlp.nr-data.net:443
headers:
api-key: 00000-00000-00000
tls:
insecure: false
Set up the pipeline:
service:
pipelines:
metrics:
receivers:
- zookeeper
processors:
- resourcedetection
- batch
exporters:
- otlp
Metric | Description |
---|---|
zookeeper.connection.active | The number of active connections. |
zookeeper.data_tree…hemeral_node.count | The number of ephemeral nodes. |
zookeeper.data_tree.size | The size of the data tree. |
zookeeper.file_descriptor.limit | The limit set for the file descriptor. |
zookeeper.file_descriptor.open | The number of open file descriptors |
zookeeper.latency.max | The maximum latency |
zookeeper.latency.min | The minimum latency set. |
zookeeper.packet.count | The packet count |
zookeeper.request.active | The number of active requests |
zookeeper.watch.count | The watch count |
zookeeper.znode.count | The total number of znode. |
Alert | Severity |
---|---|
ZooKeeper server is down | critical |
Too many znodes created | warning |
Too many connections created | warning |
Memory occupied by znode is too large | warning |
Set too many watch | warning |
Too many files open | warning |
Average latency is too high | warning |
JVM memory almost full | warning |
Also Published