Metriken sind über JMX remote abrufbar config/zookeeper
authorKai Moritz <kai@juplo.de>
Fri, 6 Oct 2023 17:42:26 +0000 (19:42 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 7 Oct 2023 11:48:47 +0000 (13:48 +0200)
docker/docker-compose.yml

index c3d06ca..fa48234 100644 (file)
@@ -20,6 +20,10 @@ services:
       KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
       KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
       KAFKA_CFG_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:/bitnami/kafka
     ports:
@@ -38,6 +42,10 @@ services:
       KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
       KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
       KAFKA_CFG_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:/bitnami/kafka
     ports:
@@ -61,6 +69,10 @@ services:
       KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
       KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
       KAFKA_CFG_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:/bitnami/kafka
     ports:
@@ -153,7 +165,6 @@ services:
               connect:
                 - name: "connect"
                   url: "http://connect:8083"
-
     depends_on:
       - kafka-1
       - kafka-2