forked from Yolean/kubernetes-kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
50-kafka-jmx-exporter-patch.yml
38 lines (38 loc) · 1.03 KB
/
50-kafka-jmx-exporter-patch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# meant to be applied using kustomize, or with pre-1.14 kubectl:
# kubectl --namespace kafka patch statefulset kafka --patch "$(cat prometheus/50-kafka-jmx-exporter-patch.yml )"
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: kafka
namespace: kafka
spec:
template:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "5556"
spec:
containers:
- name: metrics
image: solsson/kafka-prometheus-jmx-exporter@sha256:d237a12cc0cde42b539bcb5efc0008ba5e6ca1351b7843ed52bd574d181c5efd
command:
- java
- -jar
- jmx_prometheus_httpserver.jar
- "5556"
- /etc/jmx-kafka/jmx-kafka-prometheus.yml
ports:
- containerPort: 5556
resources:
requests:
cpu: 0m
memory: 60Mi
limits:
memory: 120Mi
volumeMounts:
- name: jmx-config
mountPath: /etc/jmx-kafka
volumes:
- name: jmx-config
configMap:
name: jmx-config