Prepare monitoring alert rules

This commit is contained in:
2026-05-27 06:38:57 +02:00
parent 85a0eb4c3a
commit 8e111d1e04
7 changed files with 225 additions and 3 deletions
@@ -42,6 +42,27 @@ Zeit: taeglich 06:20, Cron `20 6 * * *`.
bash /mnt/user/services/homelab-infra/services/posture-check/compose-runtime-drift.sh
```
## `prometheus-textfile-export-15min`
Zeit: alle 15 Minuten, Cron `*/15 * * * *`.
Zweck:
- Borg-Backup-Frische fuer Prometheus sichtbar machen
- kritische Container als explizite 0/1-Metrik exportieren
- Grundlage fuer `HomelabBorgBackupStale`, `HomelabBorgLastJobFailed` und `HomelabCriticalContainerDown`
```bash
#!/bin/bash
bash /mnt/user/services/homelab-infra/services/posture-check/export-prometheus-textfile.sh
```
Ziel-Datei:
```text
/mnt/user/services/posture-check/textfile/homelab.prom
```
## `homelab-operations-report-daily`
Zeit: taeglich nach Borg und den Morgenchecks, z. B. 07:30, Cron `30 7 * * *`.