Skip to content

Commit

Permalink
Add special label that exludes this always full PVC from the Alert Ku…
Browse files Browse the repository at this point in the history
…bePersistentVolumeFillingUp

The volume is meant to be full so the standard monitoring alert will be noise.

The alert is described at https://github.com/prometheus-operator/kube-prometheus/wiki/kubepersistentvolumefillingup

But I found a magic label that can be attached to the PVC:

kubernetes-monitoring/kubernetes-mixin#711
  • Loading branch information
towolf authored Nov 27, 2024
1 parent a412009 commit 47d3dfb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ spec:
volumeClaimTemplates:
- metadata:
name: data
labels:
excluded_from_alerts: "true"
spec:
accessModes: [ "ReadWriteOnce" ]
{{- with .persistence.storageClass }}
Expand Down

0 comments on commit 47d3dfb

Please sign in to comment.