Metriken sind über JMX remote abrufbar grundlagen/docker-NEU
authorKai Moritz <kai@juplo.de>
Mon, 16 Oct 2023 19:46:58 +0000 (21:46 +0200)
committerKai Moritz <kai@juplo.de>
Mon, 16 Oct 2023 19:46:58 +0000 (21:46 +0200)
docker/docker-compose.yml

index 137d5b9..df24c29 100644 (file)
@@ -21,6 +21,10 @@ services:
       KAFKA_INTER_BROKER_LISTENER_NAME: BROKER
       KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
       KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
+      KAFKA_OPTS:
+        -Dcom.sun.management.jmxremote=true
+        -Dcom.sun.management.jmxremote.port=9101
+        -Dcom.sun.management.jmxremote.authenticate=false
     volumes:
       - kafka-1-data:/var/lib/kafka/data
     ports:
@@ -39,6 +43,10 @@ services:
       KAFKA_INTER_BROKER_LISTENER_NAME: BROKER
       KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
       KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
+      KAFKA_OPTS:
+        -Dcom.sun.management.jmxremote=true
+        -Dcom.sun.management.jmxremote.port=9101
+        -Dcom.sun.management.jmxremote.authenticate=false
     volumes:
       - kafka-2-data:/var/lib/kafka/data
     ports:
@@ -62,6 +70,10 @@ services:
       KAFKA_INTER_BROKER_LISTENER_NAME: BROKER
       KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
       KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
+      KAFKA_OPTS:
+        -Dcom.sun.management.jmxremote=true
+        -Dcom.sun.management.jmxremote.port=9101
+        -Dcom.sun.management.jmxremote.authenticate=false
     volumes:
       - kafka-3-data:/var/lib/kafka/data
     ports: