Notify monitoring about successful backups

This commit is contained in:
2025-03-07 21:54:17 +01:00
parent 66dad7b8a9
commit 9f32fada4c
3 changed files with 17 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
JOB_NAME="$1"
TARGET_NAME="$2"
echo "clerie_backup_last_successful_run_time{backup_job=\"${JOB_NAME}\", backup_target=\"${TARGET_NAME}\"} $(date +%s)" > "/home/{{ node.username }}/.local/state/prometheus-node-exporter/textfiles/clerie-backup-${JOB_NAME}-${TARGET_NAME}.prom"