From: Kai Moritz Date: Sun, 19 Feb 2023 19:33:40 +0000 (+0100) Subject: Enabled the default metrics in the Bitnami image for Zookeeper X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=28092dd5ba5fb66762a92647b83e6db59cf11fec;p=demos%2Fkafka%2Fmonitoring Enabled the default metrics in the Bitnami image for Zookeeper See: https://hub.docker.com/r/bitnami/zookeeper/ --- diff --git a/prometheus.yml b/prometheus.yml index 82130e6..dbaccb2 100644 --- a/prometheus.yml +++ b/prometheus.yml @@ -30,6 +30,7 @@ scrape_configs: static_configs: - targets: - "zookeeper:80" + - "zookeeper:7000" labels: env: "dev" relabel_configs: diff --git a/zookeeper/Dockerfile b/zookeeper/Dockerfile index 13484d6..5ba5ea6 100644 --- a/zookeeper/Dockerfile +++ b/zookeeper/Dockerfile @@ -6,4 +6,5 @@ USER root RUN chmod -R 777 /opt/prometheus USER 1001 +ENV ZOO_ENABLE_PROMETHEUS_METRICS=true ENV JVMFLAGS=-javaagent:/opt/prometheus/jmx_prometheus_javaagent.jar=80:/opt/prometheus/config.yml