WIP
authorKai Moritz <kai@juplo.de>
Sat, 18 Feb 2023 15:09:14 +0000 (16:09 +0100)
committerKai Moritz <kai@juplo.de>
Sat, 18 Feb 2023 15:09:14 +0000 (16:09 +0100)
docker-compose.yml

index 5622ba8..ed044a8 100644 (file)
@@ -32,6 +32,7 @@ services:
       KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
       KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
       KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
+      JMX_PORT: 9093
     ports:
       - 9081:9081
     depends_on:
@@ -53,6 +54,7 @@ services:
       KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
       KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
       KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
+      JMX_PORT: 9093
     ports:
       - 9092:9082
       - 9082:9082
@@ -79,8 +81,14 @@ services:
       KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
       KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
       KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
+      JMX_PORT: 9093
     ports:
       - 9083:9083
     depends_on:
       - kafka-0
 
+  exporter:
+    image: danielqsj/kafka-exporter:v1.6.0
+    command: --kafka.server kafka:9092
+    ports:
+      - 9308:9308