fix: templating error on volsync prom rules
This commit is contained in:
1 parent
115e59e6cd
commit
8b23097e1e
1 file changed
+3
-7
@@ -10,18 +10,14 @@ spec:
|
|||||||
- alert: VolSyncComponentAbsent
|
- alert: VolSyncComponentAbsent
|
||||||
annotations:
|
annotations:
|
||||||
summary: VolSync component has disappeared from Prometheus target discovery.
|
summary: VolSync component has disappeared from Prometheus target discovery.
|
||||||
expr: |
|
expr: absent(up{job="volsync-metrics"})
|
||||||
absent(up{job="volsync-metrics"})
|
|
||||||
for: 15m
|
for: 15m
|
||||||
labels:
|
labels:
|
||||||
severity: critical
|
severity: critical
|
||||||
- alert: VolSyncVolumeOutOfSync
|
- alert: VolSyncVolumeOutOfSync
|
||||||
annotations:
|
annotations:
|
||||||
summary: >-
|
summary: "{% raw %}{{ $labels.obj_namespace }}/{{ $labels.obj_name }} volume is out of sync.{% endraw %}"
|
||||||
{{ $labels.obj_namespace }}/{{ $labels.obj_name }} volume
|
expr: volsync_volume_out_of_sync == 1
|
||||||
is out of sync.
|
|
||||||
expr: |
|
|
||||||
volsync_volume_out_of_sync == 1
|
|
||||||
for: 15m
|
for: 15m
|
||||||
labels:
|
labels:
|
||||||
severity: critical
|
severity: critical
|
||||||
Reference in new issue
Block a user