summaryrefslogtreecommitdiffstats
path: root/roles/os_zabbix/vars/template_openshift_master.yml
blob: a0ba8d104317370446c80533d2a66e84e67a7b88 (plain)
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
---
g_template_openshift_master:
  name: Template Openshift Master
  zitems:
  - name: create_app
    applications:
    - Openshift Master
    key: create_app

  - key: openshift.master.registry.healthz
    description: "Shows the health status of the cluster's docker registry"
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.process.count
    description: Shows number of master processes running
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.api.ping
    description: "Verify that the Openshift API is up"
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.api.healthz
    description: "Checks the healthz check of the master's api: https://master_host/healthz"
    type: int
    data_type: bool
    applications:
    - Openshift Master

  - key: openshift.master.user.count
    description: Shows number of users in a cluster
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.pod.running.count
    description: Shows number of pods running
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.pod.user.running.count
    description: Shows number of user pods running (non infrastructure pods)
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.pod.total.count
    description: Shows total number of pods (running and non running)
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.node.count
    description: Shows the total number of nodes found in the Openshift Cluster
    type: int
    applications:
    - Openshift Master

  - key: openshift.project.count
    description: Shows number of projects on a cluster
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.pv.total.count
    description: Total number of Persistent Volumes in the Openshift Cluster
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.pv.available.count
    description: Total number of Available Persistent Volumes in the Openshift Cluster
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.pv.released.count
    description: Total number of Released Persistent Volumes in the Openshift Cluster
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.pv.bound.count
    description: Total number of Bound Persistent Volumes in the Openshift Cluster
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.pv.failed.count
    description: Total number of Failed Persistent Volumes in the Openshift Cluster
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.etcd.create.success
    description: Show number of successful create actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.create.fail
    description: Show number of failed create actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.delete.success
    description: Show number of successful delete actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.delete.fail
    description: Show number of failed delete actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.get.success
    description: Show number of successful get actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.get.fail
    description: Show number of failed get actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.set.success
    description: Show number of successful set actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.set.fail
    description: Show number of failed set actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.update.success
    description: Show number of successful update actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.update.fail
    description: Show number of failed update actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.watchers
    description: Show number of etcd watchers
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.ping
    description: etcd ping
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.metric.ping
    description: "This check verifies that the https://master/metrics check is alive and communicating properly."
    type: int
    applications:
    - Openshift Master Metrics

  - key: openshift.master.apiserver.latency.summary.pods.quantile.list.5
    description: "Value from https://master/metrics.  This is the time, in miliseconds, that 50% of the pod operations have taken to completed."
    type: int
    applications:
    - Openshift Master Metrics

  - key: openshift.master.apiserver.latency.summary.pods.quantile.list.9
    description: "Value from https://master/metrics.  This is the time, in miliseconds, that 90% of the pod operations have taken to completed."
    type: int
    applications:
    - Openshift Master Metrics

  - key: openshift.master.apiserver.latency.summary.pods.quantile.list.99
    description: "Value from https://master/metrics.  This is the time, in miliseconds, that 99% of the pod operations have taken to completed."
    type: int
    applications:
    - Openshift Master Metrics

  - key: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.5
    description: "Value from https://master/metrics.  This is the time, in miliseconds, that 50% of the pod operations have taken to completed."
    type: int
    applications:
    - Openshift Master Metrics

  - key: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.9
    description: "Value from https://master/metrics.  This is the time, in miliseconds, that 90% of the pod operations have taken to completed."
    type: int
    applications:
    - Openshift Master Metrics

  - key: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.99
    description: "Value from https://master/metrics.  This is the time, in miliseconds, that 99% of the pod operations have taken to completed."
    type: int
    applications:
    - Openshift Master Metrics

  - key: openshift.master.scheduler.e2e.scheduling.latency.quantile.5
    description: "Value from https://master/metrics.  This is the time, in miliseconds, that 50% of the end to end scheduling operations have taken to completed."
    type: int
    applications:
    - Openshift Master Metrics

  - key: openshift.master.scheduler.e2e.scheduling.latency.quantile.9
    description: "Value from https://master/metrics.  This is the time, in miliseconds, that 90% of the end to end scheduling operations have taken to completed."
    type: int
    applications:
    - Openshift Master Metrics

  - key: openshift.master.scheduler.e2e.scheduling.latency.quantile.99
    description: "Value from https://master/metrics.  This is the time, in miliseconds, that 99% of the end to end scheduling operations have taken to completed."
    type: int
    applications:
    - Openshift Master Metrics

  ztriggers:
  - name: 'Openshift Master process not running on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.master.process.count.max(#3)}<1'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
    priority: high

  - name: 'Too many Openshift Master processes running on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.master.process.count.min(#3)}>1'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
    priority: high

  - name: 'Low number of etcd watchers on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.master.etcd.watchers.last(#1)}<10 and {Template Openshift Master:openshift.master.etcd.watchers.last(#2)}<10'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_etcd.asciidoc'
    priority: avg

  - name: 'Etcd ping failed on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.master.etcd.ping.last(#1)}=0 and {Template Openshift Master:openshift.master.etcd.ping.last(#2)}=0'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_etcd.asciidoc'
    priority: high

  - name: 'Number of users for Openshift Master on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.master.user.count.last()}=0'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
    priority: info

  - name: 'There are no projects running on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.project.count.last()}=0'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
    priority: info

  # Put triggers that depend on other triggers here (deps must be created first)
  - name: 'Application creation has failed on {HOST.NAME}'
    expression: '{Template Openshift Master:create_app.last(#1)}=1 and {Template Openshift Master:create_app.last(#2)}=1'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_create_app.asciidoc'
    dependencies:
    - 'Openshift Master process not running on {HOST.NAME}'
    priority: avg

  - name: 'Application creation has failed multiple times in the last hour on {HOST.NAME}'
    expression: '{Template Openshift Master:create_app.sum(1h)}>3'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_create_app.asciidoc'
    dependencies:
    - 'Openshift Master process not running on {HOST.NAME}'
    description: The application create loop has failed 4 or more times in the last hour
    priority: avg

  - name: 'Openshift Master API health check is failing on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.master.api.healthz.max(#3)}<1'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
    dependencies:
    - 'Openshift Master process not running on {HOST.NAME}'
    priority: high

  - name: 'Openshift Master API PING check is failing on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.master.api.ping.max(#3)}<1'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
    dependencies:
    - 'Openshift Master process not running on {HOST.NAME}'
    priority: high

  - name: 'Openshift Master metric PING check is failing on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.master.metric.ping.max(#3)}<1'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
    dependencies:
    - 'Openshift Master process not running on {HOST.NAME}'
    priority: avg

  - name: 'Docker Registry check failed on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.master.registry.healthz.max(#2)}<1'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
    dependencies:
    - 'Openshift Master process not running on {HOST.NAME}'
    priority: high

  zgraphs:
  - name: Openshift Master API Server Latency Pods LIST Quantiles
    width: 900
    height: 200
    graph_items:
    - item_name: openshift.master.apiserver.latency.summary.pods.quantile.list.5
      color: red
    - item_name: openshift.master.apiserver.latency.summary.pods.quantile.list.9
      color: blue
    - item_name: openshift.master.apiserver.latency.summary.pods.quantile.list.99
      color: orange

  - name: Openshift Master API Server Latency Pods WATCHLIST Quantiles
    width: 900
    height: 200
    graph_items:
    - item_name: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.5
      color: red
    - item_name: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.9
      color: blue
    - item_name: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.99
      color: orange

  - name: Openshift Master Scheduler End to End Latency Quantiles
    width: 900
    height: 200
    graph_items:
    - item_name: openshift.master.scheduler.e2e.scheduling.latency.quantile.5
      color: red
    - item_name: openshift.master.scheduler.e2e.scheduling.latency.quantile.9
      color: blue
    - item_name: openshift.master.scheduler.e2e.scheduling.latency.quantile.99
      color: orange