We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d52943b commit 922fd0cCopy full SHA for 922fd0c
etcd-backup-cronjob-monitor.PrometheusRule.yaml
@@ -3,7 +3,7 @@
3
# This PrometheusRule alerts if a etcd-backup job has failed or was not scheduled.
4
#
5
# For detailed explanation on how it works, please see:
6
-# https://wiki.adfinis.com/adfinis/index.php/Red_Hat_OpenShift_Container_Platform/Backup_Restore/etcd-backup_4.7#Monitoring
+# https://wiki.adfinis.com/adfinis/index.php/Red_Hat_OpenShift_Container_Platform/Backup_Restore
7
8
# Apply with:
9
# oc apply -n etcd-backup -f etcd-backup-cronjob-monitor.PrometheusRule.yaml
@@ -19,6 +19,6 @@ spec:
19
rules:
20
- alert: EtcdBackupCronJobStatusFailed
21
expr: |
22
- kube_job_status_succeeded{namespace="etcd-backup"} == 0
+ kube_job_status_failed{namespace="etcd-backup"} > 0
23
labels:
24
severity: critical
0 commit comments