zookeeper with prometheus exporter
100K+
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:
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.
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.-javaagent. It exposes a /metrics HTTP endpoint on port 7071.$ 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.
Mount a config or replace the file in the following path:
/etc/zookeeper/zookeeper-jmx-exporter.yml
Content type
Image
Digest
Size
213.4 MB
Last updated
over 8 years ago
docker pull telefonica/zookeeper-prometheus:3.3.0-2