Files
infrastructure/clusters/cl01tl/helm/volsync/templates/prometheus-rule.yaml
Alex Lebens f68ae9e003
All checks were successful
renovate / renovate (push) Successful in 2m9s
lint-test-helm / lint-helm (push) Successful in 12s
render-manifests-push / render-manifests-push (push) Successful in 20s
fix lint
2025-12-11 23:32:41 -06:00

32 lines
947 B
YAML

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