Skip to content

Commit ed0b64a

Browse files
authored
fix: Updating alerting configs for mariadb backups (#921)
1 parent 575df26 commit ed0b64a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

base-helm-configs/prometheus/alerting_rules.yaml

+9-3
Original file line numberDiff line numberDiff line change
@@ -172,22 +172,28 @@ additionalPrometheusRulesMap:
172172
- name: MariaDB backup alerts
173173
rules:
174174
- alert: mariadbBackupWarning
175-
expr: time() - kube_cronjob_status_last_successful_time{cronjob="mariadb-backup"} > 21600
175+
expr: |
176+
time() - kube_cronjob_status_last_successful_time{cronjob="mariadb-backup", namespace="openstack"} > 21900
177+
or
178+
time() - kube_cronjob_status_last_successful_time{cronjob="mariadb-backup", namespace="grafana"} > 86700
176179
for: 1h
177180
labels:
178181
severity: warning
179182
annotations:
180183
summary: Last MariaDB backup not successful within 1 hour of scheduled run
181184
description: "Last MariaDB backup not successful within 1 hour of scheduled run"
182185
- alert: mariadbBackupCritical
183-
expr: time() - kube_cronjob_status_last_successful_time{cronjob="mariadb-backup"} > 43200
186+
expr: |
187+
time() - kube_cronjob_status_last_successful_time{cronjob="mariadb-backup", namespace="openstack"} > 43200
188+
or
189+
time() - kube_cronjob_status_last_successful_time{cronjob="mariadb-backup", namespace="grafana"} > 172800
184190
for: 1h
185191
labels:
186192
severity: critical
187193
annotations:
188194
summary: Second successive MariaDB backup not successful within 1 hour of scheduled run
189195
description: "Second successive MariaDB backup not successful within 1 hour of scheduled run"
190-
fluentbit-serviceMonitor-alert:
196+
fluentbit-servicemonitor-alert:
191197
groups:
192198
- name: fluentbit serviceMonitor alert
193199
rules:

0 commit comments

Comments
 (0)