Sign inSign up

telefonica/zookeeper-prometheus

By telefonica

Updated over 8 years ago

zookeeper with prometheus exporter

Image
2

100K+

telefonica/zookeeper-prometheus repository overview

zookeeper with prometheus exporter

The image is based on confluentinc/cp-zookeeper, check its Docker Hub page for more information regarding the base.

This image includes the following extensions:

  • Adds the following environment variables:
    • CMD_ZOOKEEPER_SERVER_ID: includes a command that will be executed at run time and whose output will be assigned to the variable ZOOKEEPER_SERVER_ID. This is useful when the identifier of the server is only known at run time.

        services:
          zookeeper:
            image: telefonica/zookeeper-prometheus
            environment:
              # Use part or an environment variable (the HOSTNAME in the example) to get the server id
              CMD_ZOOKEEPER_SERVER_ID: "echo $((${HOSTNAME##*-}+1))"
      
    • CUSTOM_INIT_SCRIPT: includes a command that will be executed at run time, before Zookeeper starts.

  • Adds the tool zk-ensemble-ready to wait until a Zookeeper ensemble is ready checking that all nodes are either leader or follower. Run zk-ensemble-ready -h for more information.
  • Loads the Prometheus JMX exporter as a -javaagent. It exposes a /metrics HTTP endpoint on port 7071.

build

$ docker build -t telefonica/zookeeper-prometheus:<tag> .

Tags must follow the convention x.y.z-N where x.y.z matches the Confluent base image tag and N is our build number.

override the filter

Mount a config or replace the file in the following path:

/etc/zookeeper/zookeeper-jmx-exporter.yml

Tag summary

Content type

Image

Digest

Size

213.4 MB

Last updated

over 8 years ago

docker pull telefonica/zookeeper-prometheus:3.3.0-2