Skip to content

Exposes monitoring metrics for Apache Zookeeper to Prometheus

License

Notifications You must be signed in to change notification settings

awalther28/zk-exporter

 
 

Repository files navigation

Prometheus ZooKeeper Exporter Build Status

The exporter peridically scrapes Zookeeper metrics via four letter word commands, see https://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#The+Four+Letter+Words. Currently exposes metrics from the "mntr" and "ruok" (requires ZooKeeper 3.4.0 or above)

These are parsed into prometheus metrics and served on an endpoint at /metrics

Still a WIP

Installation

Currently requires go for installation. Binaries and a docker image will be coming.

To install the latest version run:

go get -u github.com/lucianjon/zk-exporter

Note: you should have $GOPATH/bin added to your $PATH

Usage

Once installed run:

zk-exporter -port <port> -servers <zookeeper servers> -pollinterval <how often to poll>

The ZooKeeper servers are a string in the host:port,host2:port2 format. The pollinterval is a go time.Duration value, eg: 30s

Getting Started

  • By default metrics are exposed on 0.0.0.0:9120/metrics

About

Exposes monitoring metrics for Apache Zookeeper to Prometheus

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 92.0%
  • Makefile 7.2%
  • Dockerfile 0.8%