diff --git a/bootstrap/templates/kubernetes/apps/volsync/volsync/app/prometheusrule.yaml.j2 b/bootstrap/templates/kubernetes/apps/volsync/volsync/app/prometheusrule.yaml.j2 index b899d636..9d677c5f 100644 --- a/bootstrap/templates/kubernetes/apps/volsync/volsync/app/prometheusrule.yaml.j2 +++ b/bootstrap/templates/kubernetes/apps/volsync/volsync/app/prometheusrule.yaml.j2 @@ -10,18 +10,14 @@ spec: - alert: VolSyncComponentAbsent annotations: summary: VolSync component has disappeared from Prometheus target discovery. - expr: | - absent(up{job="volsync-metrics"}) + expr: absent(up{job="volsync-metrics"}) for: 15m labels: severity: critical - alert: VolSyncVolumeOutOfSync annotations: - summary: >- - {{ $labels.obj_namespace }}/{{ $labels.obj_name }} volume - is out of sync. - expr: | - volsync_volume_out_of_sync == 1 + summary: "{% raw %}{{ $labels.obj_namespace }}/{{ $labels.obj_name }} volume is out of sync.{% endraw %}" + expr: volsync_volume_out_of_sync == 1 for: 15m labels: severity: critical