diff --git a/10broker-config.yml b/10broker-config.yml index af0f0374..ee86f286 100644 --- a/10broker-config.yml +++ b/10broker-config.yml @@ -244,3 +244,22 @@ data: # Change to DEBUG to enable audit log for the authorizer log4j.logger.kafka.authorizer.logger=WARN, authorizerAppender log4j.additivity.kafka.authorizer.logger=false + + jmx-kafka-prometheus.yml: |+ + lowercaseOutputName: true + jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:5555/jmxrmi + ssl: false + whitelistObjectNames: ["kafka.server:*","java.lang:*"] + rules: + - pattern : kafka.server<>Value + - pattern : kafka.server<>OneMinuteRate + - pattern : kafka.server<>OneMinuteRate + - pattern : kafka.server<>queue-size + - pattern : kafka.server<>(Value|OneMinuteRate) + - pattern : kafka.server<>(.*) + - pattern : kafka.server<>(.*) + - pattern : kafka.server<>queue-size + - pattern : kafka.server<>OneMinuteRate + - pattern : java.lang<>SystemCpuLoad + - pattern : java.langused + - pattern : java.lang<>FreePhysicalMemorySize diff --git a/50kafka.yml b/50kafka.yml index 7f7faa59..c9fc1698 100644 --- a/50kafka.yml +++ b/50kafka.yml @@ -67,7 +67,7 @@ spec: - -jar - jmx_prometheus_httpserver.jar - "5556" - - example_configs/kafka-prometheus-monitoring.yml + - /etc/kafka/jmx-kafka-prometheus.yml ports: - containerPort: 5556 resources: @@ -76,6 +76,9 @@ spec: memory: 100Mi limits: memory: 150Mi + volumeMounts: + - name: config + mountPath: /etc/kafka volumes: - name: config configMap: