add rule
Some checks failed
lint-test-helm / lint-helm (push) Failing after 10s
render-manifests-push / render-manifests-push (push) Failing after 17s
renovate / renovate (push) Successful in 1m18s

This commit is contained in:
2025-12-11 23:28:01 -06:00
parent da68ba0ad7
commit e7796838ba

View File

@@ -0,0 +1,31 @@
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: volsync
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: volsync
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
groups:
- name: volsync.rules
rules:
- alert: VolSyncComponentAbsent
annotations:
summary: VolSync component has disappeared from Prometheus target discovery.
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
for: 15m
labels:
severity: critical