blob: 0e475c211957833422fede88671315bb5362fdcb (
plain) (
tree)
|
|
apiVersion: apps/v1beta2
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:a23062396cd5af1acdf76512632c20ea6be76885dfc20cd9ff40fb23846557e8
command:
- java
- -Xmx64M
- -XX:MaxMetaspaceSize=32m
- -jar
- jmx_prometheus_httpserver.jar
- "5556"
- /etc/jmx-kafka/jmx-kafka-prometheus.yml
ports:
- containerPort: 5556
livenessProbe:
httpGet:
path: /liveness
port: 5556
periodSeconds: 60
resources:
requests:
cpu: 0m
memory: 100Mi
limits:
memory: 150Mi
volumeMounts:
- name: jmx-config
mountPath: /etc/jmx-kafka
volumes:
- name: jmx-config
configMap:
name: jmx-config
|