---
# System prepended metadata

title: PVC utilization alert

---

```apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  name: pvc-full-alert
  namespace: mynamespace
spec:
  groups:
  - name: pvc-full
    rules:
    - alert: FullPVC
      annotations:
        description: PVC xxxx is 80% full.
        message: The PVC xxxx is 80% full. This could indicate that the application using the PVC is using too much storage.
        severity_level: critical
        storage_type: test
      expr: |
        kubelet_volume_stats_used_bytes{namespace="mynamespace",persistentvolumeclaim="xxxx"}/kubelet_volume_stats_capacity_bytes{namespace="mynamespace",persistentvolumeclaim="xxxx"} *100 >=80
      for: 5m
      labels:
        severity: critical

```