diff --git a/zookeeper/10zookeeper-config.yml b/zookeeper/10zookeeper-config.yml index c9b7a6f3..eeba1e00 100644 --- a/zookeeper/10zookeeper-config.yml +++ b/zookeeper/10zookeeper-config.yml @@ -37,6 +37,10 @@ data: log4j.logger.org.apache.zookeeper.server.NIOServerCnxn=WARN jmx-zookeeper-prometheus.yaml: |+ + lowercaseOutputName: true + jmxUrl: service:jmx:rmi:///jndi/rmi://localhost:5555/jmxrmi + ssl: false + whitelistObjectNames: ["org.apache.ZooKeeperService:*","java.lang:*"] rules: - pattern: "org.apache.ZooKeeperService<>(\\w+)" name: "zookeeper_$2" @@ -54,3 +58,6 @@ data: labels: replicaId: "$2" memberType: "$3" + - pattern : java.lang<>SystemCpuLoad + - pattern : java.langused + - pattern : java.lang<>FreePhysicalMemorySize diff --git a/zookeeper/50pzoo.yml b/zookeeper/50pzoo.yml index 70d7c0ee..6ac35ba1 100644 --- a/zookeeper/50pzoo.yml +++ b/zookeeper/50pzoo.yml @@ -67,7 +67,7 @@ spec: - -jar - jmx_prometheus_httpserver.jar - "5556" - - example_configs/zookeeper.yaml + - /etc/kafka/jmx-zookeeper-prometheus.yaml ports: - containerPort: 5556 resources: @@ -76,6 +76,9 @@ spec: memory: 100Mi limits: memory: 150Mi + volumeMounts: + - name: config + mountPath: /etc/kafka volumes: - name: config configMap: