Skip to content

Commit b31e825

Browse files
committed
Adds directives from kafka's rules, now for pzoo too.
But before this, how did the metrics container know which port to connect to?
1 parent 0cf3eac commit b31e825

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

zookeeper/10zookeeper-config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ data:
3737
log4j.logger.org.apache.zookeeper.server.NIOServerCnxn=WARN
3838
3939
jmx-zookeeper-prometheus.yaml: |+
40+
lowercaseOutputName: true
41+
jmxUrl: service:jmx:rmi:///jndi/rmi://localhost:5555/jmxrmi
4042
rules:
4143
- pattern : org.apache.ZooKeeperService<type=(.*)>
4244
- pattern : java.lang<type=(.*)>

zookeeper/50pzoo.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ spec:
7373
- -jar
7474
- jmx_prometheus_httpserver.jar
7575
- "5556"
76-
- example_configs/zookeeper.yaml
76+
- /etc/kafka/jmx-zookeeper-prometheus.yaml
7777
ports:
7878
- containerPort: 5556
7979
resources:
@@ -82,6 +82,9 @@ spec:
8282
memory: 100Mi
8383
limits:
8484
memory: 150Mi
85+
volumeMounts:
86+
- name: config
87+
mountPath: /etc/kafka
8588
volumes:
8689
- name: config
8790
configMap:

0 commit comments

Comments
 (0)