-
Notifications
You must be signed in to change notification settings - Fork 0
/
mon-exporter-maria-cms.yml
76 lines (76 loc) · 1.84 KB
/
mon-exporter-maria-cms.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
apiVersion: apps/v1
kind: Deployment
metadata:
name: prom-maria-cms-exporter
namespace: <namespace>
labels:
name: prom-maria-cms-exporter
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
name: prom-maria-cms-exporter
template:
metadata:
labels:
name: prom-maria-cms-exporter
spec:
nodeSelector:
env: <clientId>
role: worker
priorityClassName: class-monitor
containers:
- name: prom-maria-cms-exporter
image: 3dsinteractive/mariadb_exporter:0.12.1
imagePullPolicy: Always
args:
[
"--collect.auto_increment.columns",
"--no-collect.info_schema.innodb_cmp",
"--no-collect.info_schema.innodb_cmpmem",
"--no-collect.slave_status",
]
env:
- name: DATA_SOURCE_NAME
value: "my_user:<password>@(maria-cms:3306)/my_database"
resources:
requests:
memory: 100Mi
cpu: 50m
limits:
memory: 500Mi
cpu: 300m
livenessProbe:
tcpSocket:
port: 9104
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 300
readinessProbe:
tcpSocket:
port: 9104
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 30
failureThreshold: 5
ports:
- containerPort: 9104
name: exporter9104
---
apiVersion: v1
kind: Service
metadata:
name: prom-maria-cms-exporter
namespace: <namespace>
labels:
name: prom-maria-cms-exporter
spec:
ports:
- port: 9104
name: "exporter9104"
targetPort: 9104
protocol: TCP
selector:
name: prom-maria-cms-exporter