mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-11 22:10:11 +01:00
28 lines
790 B
Text
28 lines
790 B
Text
|
|
apiVersion: monitoring.coreos.com/v1
|
||
|
|
kind: PrometheusRule
|
||
|
|
metadata:
|
||
|
|
labels:
|
||
|
|
app: prometheus-operator
|
||
|
|
chart: prometheus-operator-8.5.4
|
||
|
|
heritage: Tiller
|
||
|
|
release: prometheus-operator
|
||
|
|
name: prometheus-operator-zfs-alertmanager.rules
|
||
|
|
namespace: default
|
||
|
|
spec:
|
||
|
|
groups:
|
||
|
|
- name: zfsalertmanager.rules
|
||
|
|
rules:
|
||
|
|
- alert: ZFSVolumeUsageCritical
|
||
|
|
annotations:
|
||
|
|
message: The PersistentVolume claimed by {{ $labels.persistentvolumeclaim
|
||
|
|
}} in Namespace {{ $labels.namespace }} is only {{ printf "%0.2f" $value
|
||
|
|
}}% free.
|
||
|
|
expr: |
|
||
|
|
100 * kubelet_volume_stats_available_bytes{job="kubelet"}
|
||
|
|
/
|
||
|
|
kubelet_volume_stats_capacity_bytes{job="kubelet"}
|
||
|
|
< 10
|
||
|
|
for: 1m
|
||
|
|
labels:
|
||
|
|
severity: critical
|