Commit 94f4f5a7 authored by Marat Kalibekov's avatar Marat Kalibekov

Add gitlab_com_backup_too_old alert

parent 0fcfecb2
gitlab_com:last_backup_age_in_hours=(time()-gitlab_com_backup_time)/60/60
ALERT gitlab_com_backup_too_old
IF gitlab_com:last_backup_age_in_hours >= 36
FOR 1m
LABELS { severity = "critical" }
ANNOTATIONS {
title = "Regular backup for GitLab.com was taken more than {{ .Value }} hours ago. Please take the actions or in case of accident we could loose data.",
description = "Regular backups for GitLab.com are not taken on time. Please follow the runbook to review the problem.",
runbook="troubleshooting/gitlab_com_backups.md"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment