Skip to content

Commit

Permalink
feat: alert for MariaDB backup failures
Browse files Browse the repository at this point in the history
JIRA:OSPC-550
  • Loading branch information
awfabian-rs committed Dec 3, 2024
1 parent c21b254 commit 387b734
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions base-helm-configs/prometheus/alerting_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,21 @@ additionalPrometheusRulesMap:
annotations:
summary: OVN backup volume >= 90% disk usage
description: "OVN backup volume >= 90% disk usage"
- name: MariaDB backup alerts
rules:
- alert: mariadbBackupWarning
expr: time() - kube_cronjob_status_last_successful_time{cronjob="mariadb-backup"} > 21600
for: 1h
labels:
severity: warning
annotations:
summary: Last MariaDB backup not successful within 1 hour of scheduled run
description: "Last MariaDB backup not successful within 1 hour of scheduled run"
- alert: mariadbBackupCritical
expr: time() - kube_cronjob_status_last_successful_time{cronjob="mariadb-backup"} > 43200
for: 1h
labels:
severity: critical
annotations:
summary: Second successive MariaDB backup not successful within 1 hour of scheduled run
description: "Second successive MariaDB backup not successful within 1 hour of scheduled run"

0 comments on commit 387b734

Please sign in to comment.