diff --git a/_data/rules.yml b/_data/rules.yml index c2d86c8..c5873b4 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -300,6 +300,10 @@ services: description: Volume is almost full (< 10% left) query: 'kubelet_volume_stats_available_bytes / kubelet_volume_stats_capacity_bytes * 100 < 10' severity: warning + - name: Volume full in four days + description: "{{ $labels.namespace }}/{{ $labels.persistentvolumeclaim }} is expected to fill up within four days. Currently {{ printf '%0.2f' $value }}% is available." + query: '100 * (kubelet_volume_stats_available_bytes / kubelet_volume_stats_capacity_bytes) < 15 and predict_linear(kubelet_volume_stats_available_bytes[6h], 4 * 24 * 3600) < 0' + severity: critical - name: Nomad exporters: