Files
auricom-home-cluster/kubernetes/apps/default/homelab/nas/rules.yaml
2025-01-28 10:26:08 +01:00

24 lines
742 B
YAML

---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: resticprofile-backup-status
namespace: monitoring
spec:
groups:
- name: resticprofile.rules
rules:
- alert: ResticProfileBackupWarning
expr: resticprofile_backup_status == 1
annotations:
description: "The {{ $labels.profile }} profile status on hostname {{ $labels.group }} is Warning"
labels:
severity: warning
- alert: ResticProfileBackupFailure
expr: resticprofile_backup_status == 0
annotations:
description: "The {{ $labels.profile }} profile status on hostname {{ $labels.group }} is Fail"
labels:
severity: critical