From: Kai Moritz Date: Mon, 16 Oct 2023 19:46:58 +0000 (+0200) Subject: Metriken sind über JMX remote abrufbar X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=a7590ec09ad8b6d34aa7d1a00f47f19c62bf22e4;p=demos%2Fkafka%2Ftraining Metriken sind über JMX remote abrufbar --- diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index dd7c830..53b28bd 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -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=9100 + -Dcom.sun.management.jmxremote.authenticate=false volumes: - kafka-1-data:/var/lib/kafka/data ports: @@ -40,6 +44,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=9100 + -Dcom.sun.management.jmxremote.authenticate=false volumes: - kafka-2-data:/var/lib/kafka/data ports: @@ -64,6 +72,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=9100 + -Dcom.sun.management.jmxremote.authenticate=false volumes: - kafka-3-data:/var/lib/kafka/data ports: