-
Notifications
You must be signed in to change notification settings - Fork 48
/
backup_failed_test.yaml
30 lines (26 loc) · 1.12 KB
/
backup_failed_test.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
evaluation_interval: 1m
rule_files:
- prometheus.backup_alerts.yaml
tests:
- interval: 1m
input_series:
# No backup failures
- series: velero_backup_failure_total{namespace="openshift-adp", schedule="backup-toolchain-member", source_cluster="cluster01"}
values: '0x60'
# A backup failure at every interval for 1h
- series: velero_backup_failure_total{namespace="openshift-adp", schedule="backup-tenants", source_cluster="cluster01"}
values: '0+1x60'
alert_rule_test:
- eval_time: 60m
alertname: BackupFailed
exp_alerts:
- exp_labels:
severity: warning
namespace: openshift-adp
source_cluster: cluster01
schedule: backup-tenants
exp_annotations:
summary: OADP experienced backup failures for schedule backup-tenants
description: OADP had 60 backup failure(s) over the last hour for schedule backup-tenants.
alert_routing_key: openshift-adp
runbook_url: https://gitlab.cee.redhat.com/konflux/docs/sop/-/blob/main/backup/backup-failed.md