Skip to content

Commit 42d1b1a

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 e35d077 commit 42d1b1a

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
@@ -67,7 +67,7 @@ spec:
6767
- -jar
6868
- jmx_prometheus_httpserver.jar
6969
- "5556"
70-
- example_configs/zookeeper.yaml
70+
- /etc/kafka/jmx-zookeeper-prometheus.yaml
7171
ports:
7272
- containerPort: 5556
7373
resources:
@@ -76,6 +76,9 @@ spec:
7676
memory: 100Mi
7777
limits:
7878
memory: 150Mi
79+
volumeMounts:
80+
- name: config
81+
mountPath: /etc/kafka
7982
volumes:
8083
- name: config
8184
configMap:

0 commit comments

Comments
 (0)