-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkafka-exporter.yaml
41 lines (41 loc) · 996 Bytes
/
kafka-exporter.yaml
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
39
40
41
kind: Deployment
apiVersion: apps/v1
metadata:
name: kafka-exporter
labels:
app_name: kafka-exporter
spec:
revisionHistoryLimit: 30
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 10
replicas: 1
selector:
matchLabels:
app_name: kafka-exporter
template:
metadata:
labels:
app_name: kafka-exporter
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9308'
spec:
containers:
- name: kafka-exporter
image: danielqsj/kafka-exporter:v1.2.0
imagePullPolicy: IfNotPresent
command:
- kafka_exporter
- "--kafka.server=scraper-kafka-bootstrap:9092"
ports:
- name: http-metrics
containerPort: 9308
readinessProbe:
httpGet:
path: kafka-application
port: 9308
initialDelaySeconds: 5
timeoutSeconds: 5