1
0

host/monitoring-3: add rule for backups that are behind

This commit is contained in:
clerie 2023-05-24 08:41:35 +02:00
parent 22bf25715e
commit b77e9016d7

View File

@ -25,6 +25,14 @@ groups:
annotations:
summary: "Storage of {{ $labels.instance }} is full"
description: "Storage of {{ $labels.instance }} for {{ $labels.mountpoint }} on {{ $labels.device }} is full"
- alert: ClerieBackupJobLastSuccessfulRunBehind
expr: time() - clerie_backup_last_successful_run_time{} >= 5400
for: 5m
labels:
severity: warning
annotations:
summary: "Last successful backup on {{ $labels.instance }} older than 1h"
description: "Backup job {{ $labels.backup_job }} to target {{ $labels.backup_instance }} finished successfully over an hour ago"
- alert: InstanceJustBooted
expr: time() - node_boot_time_seconds{job="node-exporter"} <= 300
labels: