Enabled the default metrics in the Bitnami image for Zookeeper
authorKai Moritz <kai@juplo.de>
Sun, 19 Feb 2023 19:33:40 +0000 (20:33 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 21 Feb 2023 22:13:58 +0000 (23:13 +0100)
See: https://hub.docker.com/r/bitnami/zookeeper/

prometheus.yml
zookeeper/Dockerfile

index 82130e6..dbaccb2 100644 (file)
@@ -30,6 +30,7 @@ scrape_configs:
     static_configs:
       - targets:
           - "zookeeper:80"
+          - "zookeeper:7000"
         labels:
           env: "dev"
     relabel_configs:
index 13484d6..5ba5ea6 100644 (file)
@@ -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