This repository has been archived by the owner on May 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathkube-prometheus-stack-values.yaml
162 lines (147 loc) · 3.51 KB
/
kube-prometheus-stack-values.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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# Disable etcd monitoring. See https://github.com/cablespaghetti/k3s-monitoring/issues/4
kubeEtcd:
enabled: false
# Disable kube-controller-manager and kube-scheduler monitoring. See https://github.com/cablespaghetti/k3s-monitoring/issues/2
kubeControllerManager:
enabled: false
kubeScheduler:
enabled: false
alertmanager:
config:
global:
smtp_from: [email protected]
smtp_smarthost: mailhog:1025
smtp_require_tls: false
# smtp_smarthost: smtp.gmail.com:587
# smtp_auth_username: [email protected]
# smtp_auth_password: yourapppassword # https://support.google.com/mail/answer/185833?hl=en-GB
# smtp_auth_identity: [email protected]
route:
group_by: ['job']
group_wait: 30s
group_interval: 5m
repeat_interval: 1h
receiver: email
routes:
- match:
alertname: Watchdog
receiver: 'null'
- match:
alertname: CPUThrottlingHigh
receiver: 'null'
- match:
alertname: KubeMemoryOvercommit
receiver: 'null'
- match:
alertname: KubeCPUOvercommit
receiver: 'null'
- match:
alertname: KubeletTooManyPods
receiver: 'null'
receivers:
- name: 'null'
- name: email
email_configs:
- send_resolved: true
# Inhibition rules allow to mute a set of alerts given that another alert is firing.
# We use this to mute any warning-level notifications if the same alert is already critical.
inhibit_rules:
- source_match:
severity: 'critical'
target_match:
severity: 'warning'
# Apply inhibition if the alertname is the same.
equal: ['alertname', 'namespace']
alertmanagerSpec:
# replicas: 3
# podAntiAffinity: "soft"
storage:
volumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
# resources:
# limits:
# cpu: 500m
# memory: 64Mi
# requests:
# cpu: 25m
# memory: 32Mi
# priorityClassName: high-priority
prometheus:
prometheusSpec:
retention: 3d
# replicas: 2
# podAntiAffinity: "hard"
storageSpec:
volumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 10Gi
# resources:
# limits:
# cpu: "2"
# memory: 5Gi
# requests:
# cpu: 100m
# memory: 4Gi
# priorityClassName: high-priority
#
# service:
# sessionAffinity: "ClientIP"
#
grafana:
plugins:
- grafana-piechart-panel
# resources:
# limits:
# cpu: 500m
# memory: 128Mi
# requests:
# cpu: 25m
# memory: 64Mi
#
# sidecar:
# resources:
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 5m
# memory: 64Mi
#prometheusOperator:
# resources:
# limits:
# cpu: 1
# memory: 512Mi
# requests:
# cpu: 50m
# memory: 128Mi
# priorityClassName: high-priority
#prometheus-node-exporter:
# resources:
# limits:
# cpu: 50m
# memory: 50Mi
# requests:
# cpu: 5m
# memory: 16Mi
# priorityClassName: high-priority
kube-state-metrics:
# resources:
# limits:
# cpu: 1
# memory: 512Mi
# requests:
# cpu: 5m
# memory: 128Mi
# priorityClassName: high-priority
# Use an unofficial multi-arch image until kube-state-metrics v2 is stable
image:
repository: eddiezane/kube-state-metrics
tag: v1.9.7