From 28092dd5ba5fb66762a92647b83e6db59cf11fec Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 19 Feb 2023 20:33:40 +0100 Subject: [PATCH] Enabled the default metrics in the Bitnami image for Zookeeper See: https://hub.docker.com/r/bitnami/zookeeper/ --- prometheus.yml | 1 + zookeeper/Dockerfile | 1 + 2 files changed, 2 insertions(+) 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 -- 2.20.1