forked from openshift/release
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprometheus-prow-rules_prometheusrule.yaml
485 lines (485 loc) · 21.9 KB
/
prometheus-prow-rules_prometheusrule.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
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
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
labels:
prometheus: prow
role: alert-rules
name: prometheus-prow-rules
namespace: prow-monitoring
spec:
groups:
- name: mirroring-failures
rules:
- alert: mirroring-failures
annotations:
message: '@build-cop image mirroring jobs have failed. View failed jobs at
the <https://prow.ci.openshift.org/?job=periodic-image-mirroring-openshift|overview>. If
there is a consistent issue, open a bugzilla bug against Test Infrastructure
and assign it to Clayton Coleman.'
expr: |
increase(prowjob_state_transitions{job_name="periodic-image-mirroring-openshift",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: build-cop
- name: ci-absent
rules:
- alert: deckDown
annotations:
message: The service deck has been down for 5 minutes.
expr: |
absent(up{job="deck"} == 1)
for: 5m
labels:
severity: critical
- alert: deck-internalDown
annotations:
message: The service deck-internal has been down for 5 minutes.
expr: |
absent(up{job="deck-internal"} == 1)
for: 5m
labels:
severity: critical
- alert: ghproxyDown
annotations:
message: The service ghproxy has been down for 5 minutes.
expr: |
absent(up{job="ghproxy"} == 1)
for: 5m
labels:
severity: critical
- alert: hookDown
annotations:
message: The service hook has been down for 5 minutes.
expr: |
absent(up{job="hook"} == 1)
for: 5m
labels:
severity: critical
- alert: jenkins-dev-operatorDown
annotations:
message: The service jenkins-dev-operator has been down for 5 minutes.
expr: |
absent(up{job="jenkins-dev-operator"} == 1)
for: 5m
labels:
severity: critical
- alert: jenkins-operatorDown
annotations:
message: The service jenkins-operator has been down for 5 minutes.
expr: |
absent(up{job="jenkins-operator"} == 1)
for: 5m
labels:
severity: critical
- alert: kata-jenkins-operatorDown
annotations:
message: The service kata-jenkins-operator has been down for 5 minutes.
expr: |
absent(up{job="kata-jenkins-operator"} == 1)
for: 5m
labels:
severity: critical
- alert: prow-controller-managerDown
annotations:
message: The service prow-controller-manager has been down for 5 minutes.
expr: |
absent(up{job="prow-controller-manager"} == 1)
for: 5m
labels:
severity: critical
- alert: sinkerDown
annotations:
message: The service sinker has been down for 5 minutes.
expr: |
absent(up{job="sinker"} == 1)
for: 5m
labels:
severity: critical
- alert: tideDown
annotations:
message: The service tide has been down for 5 minutes.
expr: |
absent(up{job="tide"} == 1)
for: 5m
labels:
severity: critical
- alert: dptp-controller-managerDown
annotations:
message: The service dptp-controller-manager has been down for 5 minutes.
expr: |
absent(up{job="dptp-controller-manager"} == 1)
for: 5m
labels:
severity: critical
- name: prow-monitoring-absent
rules:
- alert: ServiceLostHA
annotations:
message: The service {{ $labels.job }} has at most 1 instance for 5 minutes.
expr: |
sum(up{job=~"grafana|prometheus|alertmanager"}) by (job) <= 1
for: 5m
labels:
severity: critical
- alert: AlertManagerPodDown
annotations:
message: Not all of 3 alert manager pods have been running in the last 5 minutes.
expr: |
sum(up{job="alertmanager"}) < 3
for: 5m
labels:
severity: critical
- alert: grafanaDown
annotations:
message: The service grafana has been down for 5 minutes.
expr: |
absent(up{job="grafana"} == 1)
for: 5m
labels:
severity: critical
- alert: alertmanagerDown
annotations:
message: The service alertmanager has been down for 5 minutes.
expr: |
absent(up{job="alertmanager"} == 1)
for: 5m
labels:
severity: critical
- alert: prometheusDown
annotations:
message: The service prometheus has been down for 5 minutes.
expr: |
absent(up{job="prometheus"} == 1)
for: 5m
labels:
severity: critical
- alert: blackboxDown
annotations:
message: The service blackbox has been down for 5 minutes.
expr: |
absent(up{job="blackbox"} == 1)
for: 5m
labels:
severity: critical
- name: abnormal webhook behaviors
rules:
- alert: no-webhook-calls
annotations:
message: There have been no webhook calls on working hours for 5 minutes
expr: |
(sum(increase(prow_webhook_counter[1m])) == 0 or absent(prow_webhook_counter))
and ( (day_of_week() > 0) and (day_of_week() < 6) and (hour() >= 7) )
for: 5m
labels:
severity: critical
- name: configmap-full
rules:
- alert: ConfigMapFullInOneWeek
annotations:
message: Based on recent sampling, the ConfigMap {{ $labels.name }} in Namespace
{{ $labels.namespace }} is expected to fill up within a week. Currently
{{ printf "%0.2f" $value }}% is available.
expr: |
100 * ((1048576 - prow_configmap_size_bytes) / 1048576) < 15
and
predict_linear(prow_configmap_size_bytes[12h], 7 * 24 * 3600) > 1048576
for: 5m
labels:
severity: critical
- name: plank-infra
rules:
- alert: plank-job-with-infra-role-failures
annotations:
message: plank jobs {{ $labels.job_name }} with infra role has failures. Check
on <https://grafana-prow-monitoring.apps.ci.l2s4.p1.openshiftapps.com/d/8ce131e226b7fd2901c2fce45d4e21c1/dptp-dashboard?orgId=1&fullscreen&panelId=3|grafana>
and <https://prow.ci.openshift.org/?job={{ $labels.job_name }}|deck>
expr: |
sum(rate(prowjob_state_transitions{job="prow-controller-manager",job_name!~"rehearse.*",state="failure"}[5m])) by (job_name) * on (job_name) group_left prow_job_labels{job_agent="kubernetes",label_ci_openshift_io_role="infra"} > 0
for: 1m
labels:
severity: critical
- name: ci-operator-infra-error
rules:
- alert: high-ci-operator-infra-error-rate
annotations:
message: An excessive amount of CI Operator executions are failing with {{
$labels.reason }}, which is an infrastructure issue.
expr: |
sum(rate(ci_operator_error_rate{state="failed",reason!~".*cloning_source",reason!~".*executing_template",reason!~".*executing_multi_stage_test",reason!~".*building_image_from_source",reason!~".*building_.*_image",reason!="executing_graph:interrupted"}[30m])) by (reason) > 0.02
for: 1m
labels:
severity: critical
- name: ci-operator-error
rules:
- alert: high-ci-operator-error-rate
annotations:
message: An excessive amount of CI Operator executions are failing with {{
$labels.reason }}, which does not necessarily point to an infrastructure
issue but is happening at an excessive rate and should be investigated.
expr: |
sum(rate(ci_operator_error_rate{state="failed"}[30m])) by (reason) > 0.07
for: 1m
labels:
severity: critical
- name: jobs-failing-with-lease-acquire-timeout
rules:
- alert: jobs-failing-with-lease-acquire-timeout
annotations:
message: Jobs on provider {{ $labels.provider }} fail because they were unable
to acquire a lease.
expr: |
label_replace((sum(increase(ci_operator_error_rate{state="failed",reason=~"executing_graph:step_failed:utilizing_lease:acquiring_lease:.*"}[15m])) by (reason)), "provider", "$1", "reason", "executing_graph:step_failed:utilizing_lease:acquiring_lease:(.*)-quota-slice") > 0
for: 1m
labels:
severity: critical
- name: http-probe
rules:
- alert: SSLCertExpiringSoon
annotations:
message: The SSL certificates for instance {{ $labels.instance }} are expiring
in 28 days.
expr: |
probe_ssl_earliest_cert_expiry{job="blackbox"} - time() < 86400 * 28
for: 1m
labels:
severity: critical
- alert: ProbeFailing
annotations:
message: Probing the instance {{ $labels.instance }} has been failing for
the past 5 minutes.
expr: |
up{job="blackbox"} == 0 or probe_success{job="blackbox"} == 0
for: 5m
labels:
severity: critical
- name: ghproxy
rules:
- alert: ghproxy-specific-status-code-abnormal
annotations:
message: '{{ $value | humanize }}% of all requests for {{ $labels.path }}
through the GitHub proxy are errorring with code {{ $labels.status }}. Check
<https://grafana-prow-monitoring.apps.ci.l2s4.p1.openshiftapps.com/d/d72fe8d0400b2912e319b1e95d0ab1b3/github-cache?orgId=1&refresh=1m&fullscreen&panelId=9|grafana>'
expr: |
sum(rate(github_request_duration_count{status=~"[45]..",status!="404",status!="410"}[5m])) by (status,path) / ignoring(status) group_left sum(rate(github_request_duration_count[5m])) by (path) * 100 > 10
labels:
severity: warning
- alert: ghproxy-global-status-code-abnormal
annotations:
message: '{{ $value | humanize }}% of all API requests through the GitHub
proxy are errorring with code {{ $labels.status }}. Check <https://grafana-prow-monitoring.apps.ci.l2s4.p1.openshiftapps.com/d/d72fe8d0400b2912e319b1e95d0ab1b3/github-cache?orgId=1&fullscreen&panelId=8|grafana>'
expr: |
sum(rate(github_request_duration_count{status=~"[45]..",status!="404",status!="410"}[5m])) by (status) / ignoring(status) group_left sum(rate(github_request_duration_count[5m])) * 100 > 3
labels:
severity: warning
- alert: ghproxy-running-out-github-tokens-in-a-hour
annotations:
message: '{{ $labels.login }} may run out of API quota before the next reset.
Check the <https://grafana-prow-monitoring.apps.ci.l2s4.p1.openshiftapps.com/d/d72fe8d0400b2912e319b1e95d0ab1b3/github-cache?orgId=1|dashboard>'
expr: |
github_token_usage * on(token_hash) group_left(login) max(github_user_info{login=~"openshift-.*"}) by (token_hash, login) + deriv(github_token_usage[20m]) * github_token_reset * on(token_hash) group_left(login) max(github_user_info{login=~"openshift-.*"}) by (token_hash, login) / 1e9 < 100
for: 5m
labels:
severity: critical
- name: sinker-missing
rules:
- alert: SinkerNotRemovingPods
annotations:
message: Sinker has not removed any Pods in the last hour, likely indicating
an outage in the service.
expr: |
absent(sum(rate(sinker_pods_removed[1h]))) == 1
for: 5m
labels:
severity: critical
- alert: SinkerNotRemovingProwJobs
annotations:
message: Sinker has not removed any Prow jobs in the last hour, likely indicating
an outage in the service.
expr: |
absent(sum(rate(sinker_prow_jobs_cleaned[1h]))) == 1
for: 5m
labels:
severity: critical
- name: prow-job-failures
rules:
- alert: endurance-cluster-maintenance-aws-4.4-failures
annotations:
message: '@bparees Prow job endurance-cluster-maintenance-aws-4.4 has failures.
Check on <https://prow.ci.openshift.org/?type=periodic&job=endurance-cluster-maintenance-aws-4.4|deck>'
expr: |
rate(prowjob_state_transitions{job_name="endurance-cluster-maintenance-aws-4.4",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: build-cop
- alert: endurance-cluster-maintenance-aws-4.5-failures
annotations:
message: '@bparees Prow job endurance-cluster-maintenance-aws-4.5 has failures.
Check on <https://prow.ci.openshift.org/?type=periodic&job=endurance-cluster-maintenance-aws-4.5|deck>'
expr: |
rate(prowjob_state_transitions{job_name="endurance-cluster-maintenance-aws-4.5",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: build-cop
- alert: periodic-ci-kubevirt-hyperconverged-cluster-operator-release-4.5-hco-e2e-nightly-bundle-release-4-5-azure4-failures
annotations:
message: '@build-officer Prow job periodic-ci-kubevirt-hyperconverged-cluster-operator-release-4.5-hco-e2e-nightly-bundle-release-4-5-azure4
has failures. Check on <https://prow.ci.openshift.org/?type=periodic&job=periodic-ci-kubevirt-hyperconverged-cluster-operator-release-4.5-hco-e2e-nightly-bundle-release-4-5-azure4|deck>'
expr: |
rate(prowjob_state_transitions{job_name="periodic-ci-kubevirt-hyperconverged-cluster-operator-release-4.5-hco-e2e-nightly-bundle-release-4-5-azure4",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: openshift-virtualization
- alert: periodic-ci-openshift-kni-cnf-features-deploy-master-cnf-e2e-gcp-periodic-failures
annotations:
message: '@cnf-cop Prow job periodic-ci-openshift-kni-cnf-features-deploy-master-cnf-e2e-gcp-periodic
has failures. Check on <https://prow.ci.openshift.org/?type=periodic&job=periodic-ci-openshift-kni-cnf-features-deploy-master-cnf-e2e-gcp-periodic|deck>'
expr: |
rate(prowjob_state_transitions{job_name="periodic-ci-openshift-kni-cnf-features-deploy-master-cnf-e2e-gcp-periodic",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: cnf-cop
- alert: periodic-ci-openshift-kni-cnf-features-deploy-release-4.4-cnf-e2e-gcp-periodic-failures
annotations:
message: '@cnf-cop Prow job periodic-ci-openshift-kni-cnf-features-deploy-release-4.4-cnf-e2e-gcp-periodic
has failures. Check on <https://prow.ci.openshift.org/?type=periodic&job=periodic-ci-openshift-kni-cnf-features-deploy-release-4.4-cnf-e2e-gcp-periodic|deck>'
expr: |
rate(prowjob_state_transitions{job_name="periodic-ci-openshift-kni-cnf-features-deploy-release-4.4-cnf-e2e-gcp-periodic",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: cnf-cop
- alert: periodic-ci-openshift-kni-cnf-features-deploy-release-4.5-cnf-e2e-gcp-periodic-failures
annotations:
message: '@cnf-cop Prow job periodic-ci-openshift-kni-cnf-features-deploy-release-4.5-cnf-e2e-gcp-periodic
has failures. Check on <https://prow.ci.openshift.org/?type=periodic&job=periodic-ci-openshift-kni-cnf-features-deploy-release-4.5-cnf-e2e-gcp-periodic|deck>'
expr: |
rate(prowjob_state_transitions{job_name="periodic-ci-openshift-kni-cnf-features-deploy-release-4.5-cnf-e2e-gcp-periodic",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: cnf-cop
- alert: periodic-ci-operator-framework-operator-lifecycle-managment-master-rhoperator-metric-e2e-aws-olm-master-daily-failures
annotations:
message: '@olmcop Prow job periodic-ci-operator-framework-operator-lifecycle-managment-master-rhoperator-metric-e2e-aws-olm-master-daily
has failures. Check on <https://prow.ci.openshift.org/?type=periodic&job=periodic-ci-operator-framework-operator-lifecycle-managment-master-rhoperator-metric-e2e-aws-olm-master-daily|deck>'
expr: |
rate(prowjob_state_transitions{job_name="periodic-ci-operator-framework-operator-lifecycle-managment-master-rhoperator-metric-e2e-aws-olm-master-daily",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: OLM
- alert: periodic-ci-operator-framework-operator-lifecycle-managment-rhoperator-metric-e2e-aws-olm-release-4.4-daily-failures
annotations:
message: '@olmcop Prow job periodic-ci-operator-framework-operator-lifecycle-managment-rhoperator-metric-e2e-aws-olm-release-4.4-daily
has failures. Check on <https://prow.ci.openshift.org/?type=periodic&job=periodic-ci-operator-framework-operator-lifecycle-managment-rhoperator-metric-e2e-aws-olm-release-4.4-daily|deck>'
expr: |
rate(prowjob_state_transitions{job_name="periodic-ci-operator-framework-operator-lifecycle-managment-rhoperator-metric-e2e-aws-olm-release-4.4-daily",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: OLM
- alert: periodic-ci-operator-framework-operator-lifecycle-managment-rhoperator-metric-e2e-aws-olm-release-4.5-daily-failures
annotations:
message: '@olmcop Prow job periodic-ci-operator-framework-operator-lifecycle-managment-rhoperator-metric-e2e-aws-olm-release-4.5-daily
has failures. Check on <https://prow.ci.openshift.org/?type=periodic&job=periodic-ci-operator-framework-operator-lifecycle-managment-rhoperator-metric-e2e-aws-olm-release-4.5-daily|deck>'
expr: |
rate(prowjob_state_transitions{job_name="periodic-ci-operator-framework-operator-lifecycle-managment-rhoperator-metric-e2e-aws-olm-release-4.5-daily",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: OLM
- alert: periodic-ci-redhat-developer-service-binding-operator-master-dev-release-failures
annotations:
message: '@openshift-app-services Prow job periodic-ci-redhat-developer-service-binding-operator-master-dev-release
has failures. Check on <https://prow.ci.openshift.org/?type=periodic&job=periodic-ci-redhat-developer-service-binding-operator-master-dev-release|deck>'
expr: |
rate(prowjob_state_transitions{job_name="periodic-ci-redhat-developer-service-binding-operator-master-dev-release",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: openshift-dev-services
- alert: periodic-openshift-library-import-failures
annotations:
message: '@devex Prow job periodic-openshift-library-import has failures.
Check on <https://prow.ci.openshift.org/?type=periodic&job=periodic-openshift-library-import|deck>'
expr: |
rate(prowjob_state_transitions{job_name="periodic-openshift-library-import",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: developer-experience
- alert: release-openshift-ocp-installer-cluster-logging-operator-e2e-4.5-failures
annotations:
message: '@aoslogging Prow job release-openshift-ocp-installer-cluster-logging-operator-e2e-4.5
has failures. Check on <https://prow.ci.openshift.org/?type=periodic&job=release-openshift-ocp-installer-cluster-logging-operator-e2e-4.5|deck>'
expr: |
rate(prowjob_state_transitions{job_name="release-openshift-ocp-installer-cluster-logging-operator-e2e-4.5",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: logging
- alert: release-openshift-ocp-installer-e2e-gcp-rt-4.4-failures
annotations:
message: '@cnf-cop Prow job release-openshift-ocp-installer-e2e-gcp-rt-4.4
has failures. Check on <https://prow.ci.openshift.org/?type=periodic&job=release-openshift-ocp-installer-e2e-gcp-rt-4.4|deck>'
expr: |
rate(prowjob_state_transitions{job_name="release-openshift-ocp-installer-e2e-gcp-rt-4.4",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: cnf-cop
- alert: release-openshift-ocp-installer-e2e-gcp-rt-4.5-failures
annotations:
message: '@cnf-cop Prow job release-openshift-ocp-installer-e2e-gcp-rt-4.5
has failures. Check on <https://prow.ci.openshift.org/?type=periodic&job=release-openshift-ocp-installer-e2e-gcp-rt-4.5|deck>'
expr: |
rate(prowjob_state_transitions{job_name="release-openshift-ocp-installer-e2e-gcp-rt-4.5",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: cnf-cop
- alert: release-openshift-ocp-installer-elasticsearch-operator-e2e-4.5-failures
annotations:
message: '@aoslogging Prow job release-openshift-ocp-installer-elasticsearch-operator-e2e-4.5
has failures. Check on <https://prow.ci.openshift.org/?type=periodic&job=release-openshift-ocp-installer-elasticsearch-operator-e2e-4.5|deck>'
expr: |
rate(prowjob_state_transitions{job_name="release-openshift-ocp-installer-elasticsearch-operator-e2e-4.5",state="failure"}[5m]) > 0
for: 1m
labels:
severity: critical
team: logging
- alert: periodic-ci-image-import-to-build01-low
annotations:
message: '`periodic-ci-image-import-to-build01` jobs are passing at a rate
of {{ $value | humanize }}%, which is below the target (95%). Check <https://prow.ci.openshift.org/?job=periodic-ci-image-import-to-build01|deck-portal>.'
expr: |
sum(rate(prowjob_state_transitions{job="prow-controller-manager",job_name="periodic-ci-image-import-to-build01",state="success"}[2d]))/sum(rate(prowjob_state_transitions{job="prow-controller-manager",job_name="periodic-ci-image-import-to-build01",state=~"success|failure"}[2d])) * 100 < 95
for: 10m
labels:
severity: critical
- name: prow
rules:
- alert: prow-pod-crashlooping
annotations:
message: Pod {{ $labels.namespace }}/{{ $labels.pod }} ({{ $labels.container}})
is restarting {{ printf "%.2f" $value }} times / 5 minutes.
expr: rate(kube_pod_container_status_restarts_total{namespace=~"ci|prow-monitoring",job="kube-state-metrics"}[15m])
* 60 * 5 > 0
for: 1m
labels:
severity: critical
- name: release-controller-down
rules:
- alert: releaseControllerDown
annotations:
message: '{{ $labels.deployment }} has been down for 5 minutes.'
expr: kube_deployment_status_replicas_unavailable{namespace="ci", deployment=~"release-controller.*"}
>= 1
for: 5m
labels:
severity: critical