Fixed activation of JMX for Zookeeper
authorKai Moritz <kai@juplo.de>
Tue, 2 May 2023 20:44:38 +0000 (22:44 +0200)
committerKai Moritz <kai@juplo.de>
Tue, 2 May 2023 20:44:38 +0000 (22:44 +0200)
docker-compose.yml
zookeeper/Dockerfile

index ba8849e..e1b6160 100644 (file)
@@ -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:
index 5ba5ea6..48525a6 100644 (file)
@@ -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"