From: Kai Moritz Date: Tue, 2 May 2023 20:44:38 +0000 (+0200) Subject: Fixed activation of JMX for Zookeeper X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=0b5b8306f7f5f83fb36bb88c75b78377b3896961;p=demos%2Fkafka%2Fmonitoring Fixed activation of JMX for Zookeeper --- diff --git a/docker-compose.yml b/docker-compose.yml index ba8849e..e1b6160 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,10 +5,6 @@ services: zookeeper: build: zookeeper environment: - JVMFLAGS: - -Dcom.sun.management.jmxremote=true - -Dcom.sun.management.jmxremote.port=7070 - -Dcom.sun.management.jmxremote.authenticate=false ALLOW_ANONYMOUS_LOGIN: 'yes' ZOO_ENABLE_PROMETHEUS_METRICS: 'yes' volumes: diff --git a/zookeeper/Dockerfile b/zookeeper/Dockerfile index 5ba5ea6..48525a6 100644 --- a/zookeeper/Dockerfile +++ b/zookeeper/Dockerfile @@ -6,5 +6,4 @@ 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 +ENV JVMFLAGS="-javaagent:/opt/prometheus/jmx_prometheus_javaagent.jar=80:/opt/prometheus/config.yml -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=7070 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"