ZooKeeper监控

ZooKeeper Monitor Guide

Zookeeper集群进行监控,发现的方案有三种:

  • JMX
  • zookeeper exporter
  • ZK Monitor(Since 3.6.0)

采用JMX 进行监控,可获取到的指标项不够丰富。Zookeeper Exporter监控可获得的指标项亦不太够丰富。从3.6.0之后,Zookeeper自带的Monitor结合Prometheus、Grafana可绘制出丰富的监控图表项。下面主要介绍下 Zookeeper Monitor的方式。

New Metrics System

The feature:New Metrics System has been available since 3.6.0 which provides the abundant metrics to help users monitor the ZooKeeper on the topic: znode, network, disk, quorum, leader election, client, security, failures, watch/session, requestProcessor, and so forth.

Metrics

All the metrics are included in the ServerMetrics.java.

Prometheus

  • Running a Prometheus monitoring service is the easiest way

你可能感兴趣的:(大数据企业级实战,zookeeper)