Skip to content

Commit

Permalink
fix(base-cluster): fix prometheusrule quotation
Browse files Browse the repository at this point in the history
  • Loading branch information
tasches committed Feb 8, 2024
1 parent 93ee564 commit e45c27d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions charts/base-cluster/templates/backup/velero.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,15 @@ spec:
spec:
- alert: VeleroBackupPartialFailures
annotations:
message: Velero backup {{ $labels.schedule }} has {{ $value | humanizePercentage
}} partialy failed backups.
expr: velero_backup_partial_failure_total{schedule!=""} / velero_backup_attempt_total{schedule!=""}
> 0.25
message: Velero backup {{ "{{ $labels.schedule }}" }} has {{ "{{ $value | humanizePercentage }}" }} partialy failed backups.
expr: velero_backup_partial_failure_total{schedule!=""} / velero_backup_attempt_total{schedule!=""} > 0.25
for: 15m
labels:
severity: warning
- alert: VeleroBackupFailures
annotations:
message: Velero backup {{ $labels.schedule }} has {{ $value | humanizePercentage
}} failed backups.
expr: velero_backup_failure_total{schedule!=""} / velero_backup_attempt_total{schedule!=""}
> 0.25
message: Velero backup {{ "{{ $labels.schedule }}" }} has {{ "{{ $value | humanizePercentage }} "}} failed backups.
expr: velero_backup_failure_total{schedule!=""} / velero_backup_attempt_total{schedule!=""} > 0.25
for: 15m
labels:
severity: warning
Expand Down

0 comments on commit e45c27d

Please sign in to comment.