Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions zookeeper/10zookeeper-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<name0=ReplicatedServer_id(\\d)><>(\\w+)"
name: "zookeeper_$2"
Expand All @@ -54,3 +58,6 @@ data:
labels:
replicaId: "$2"
memberType: "$3"
- pattern : java.lang<type=OperatingSystem><>SystemCpuLoad
- pattern : java.lang<type=Memory><HeapMemoryUsage>used
- pattern : java.lang<type=OperatingSystem><>FreePhysicalMemorySize
5 changes: 4 additions & 1 deletion zookeeper/50pzoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -76,6 +76,9 @@ spec:
memory: 100Mi
limits:
memory: 150Mi
volumeMounts:
- name: config
mountPath: /etc/kafka
volumes:
- name: config
configMap:
Expand Down