Skip to content

Commit d82b419

Browse files
committed
The metrics part of #49
1 parent b275895 commit d82b419

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

jmx/50kafka.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
apiVersion: apps/v1beta2
2+
kind: StatefulSet
3+
metadata:
4+
name: kafka
5+
namespace: kafka
6+
spec:
7+
template:
8+
metadata:
9+
annotations:
10+
prometheus.io/scrape: "true"
11+
prometheus.io/port: "5556"
12+
spec:
13+
containers:
14+
- name: metrics
15+
image: solsson/kafka-prometheus-jmx-exporter@sha256:40a6ab24ccac0ed5acb8c02dccfbb1f5924fd97f46c0450e0245686c24138b53
16+
command:
17+
- java
18+
- -Xmx64M
19+
- -XX:MaxMetaspaceSize=32m
20+
- -jar
21+
- jmx_prometheus_httpserver.jar
22+
- "5556"
23+
- /etc/jmx-kafka/jmx-kafka-prometheus.yml
24+
ports:
25+
- containerPort: 5556
26+
resources:
27+
requests:
28+
cpu: 0m
29+
memory: 100Mi
30+
limits:
31+
memory: 150Mi
32+
volumeMounts:
33+
- name: jmx-config
34+
mountPath: /etc/jmx-kafka
35+
volumes:
36+
- name: jmx-config
37+
configMap:
38+
name: jmx-config

0 commit comments

Comments
 (0)