Skip to content

Commit 1fcc150

Browse files
chore: alerts will be triggered when the value is greater than zero
1 parent abf6bac commit 1fcc150

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prometheus/alerts.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ groups:
99
annotations:
1010
message: MongoDB backups on {{ $labels.instance }}, for snapshot {{ $labels.name }} has not ran in the last 24H
1111
- alert: MongoDBBackupError
12-
expr: 'mongodb_backups_scheduler_backup_total{status="error"} > 1'
12+
expr: 'mongodb_backups_scheduler_backup_total{status="error"} > 0'
1313
for: 30s
1414
labels:
1515
severity: P3
1616
annotations:
1717
message: MongoDB backups on {{ $labels.instance }}, for snapshot {{ $labels.name }} has errors
1818
- alert: MongoDBBackupRetentionError
19-
expr: 'mongodb_backups_scheduler_retention_total{status="error"} > 1'
19+
expr: 'mongodb_backups_scheduler_retention_total{status="error"} > 0'
2020
for: 30s
2121
labels:
2222
severity: P3

0 commit comments

Comments
 (0)