Skip to content

Commit e2ae2bf

Browse files
committed
Exposes JMX for brokers, to typical monitoring setups
Already included in #49, but here we don't add any export container to the pod. Can be utilized by kafka-manager (#83) - just tick the JMX box when adding a cluster - to see bytes in/out rates.
1 parent 2257cd1 commit e2ae2bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kafka/50kafka.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,15 @@ spec:
4343
env:
4444
- name: KAFKA_LOG4J_OPTS
4545
value: -Dlog4j.configuration=file:/etc/kafka/log4j.properties
46+
- name: JMX_PORT
47+
value: "5555"
4648
ports:
4749
- name: inside
4850
containerPort: 9092
4951
- name: outside
5052
containerPort: 9094
53+
- name: jmx
54+
containerPort: 5555
5155
command:
5256
- ./bin/kafka-server-start.sh
5357
- /etc/kafka/server.properties

0 commit comments

Comments
 (0)