feat: benji alerting

This commit is contained in:
auricom
2021-08-22 02:55:53 +02:00
parent c64594d149
commit b33fab6d5d
2 changed files with 20 additions and 0 deletions

View File

@@ -6,4 +6,5 @@ resources:
- volume.yaml
- helm-release.yaml
- podmonitor.yaml
- prometheus-rule.yaml
- pgbackups.yaml

View File

@@ -0,0 +1,19 @@
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: benji
namespace: rook-ceph
spec:
groups:
- name: Benji
rules:
- alert: BackupFailed
annotations:
summary: >-
{{ $labels.volume }} backup has failed.
expr: >-
benji_backup_status_succeeded != 1
for: 30m
labels:
severity: page