monitoring: suppress the dead kubelet_volume_stats rules in kubernetes-storage

kube-prometheus-stack's kubernetes-storage group ships five rules; four of
them (both severities of KubePersistentVolumeFillingUp and of
KubePersistentVolumeInodesFillingUp) select kubelet_volume_stats_*. Those
series have no producer here: kubelet v1.36.4 404s on /metrics/volumes on all
three nodes (404s since kubelet 1.34, kubernetes/kubernetes#133847) and
count(kubelet_volume_stats_used_bytes) returns 0 series. The rules loaded fine
and reported health=ok/active=false, which reads as 'no PVC is filling' when
nothing can ever fire.

Disabled per rule via defaultRules.disabled (not by dropping the group): the
group's fifth alert, KubePersistentVolumeErrors, uses kube-state-metrics'
kube_persistentvolume_status_phase, which is live (40 series), so it stays.

Verified by rendering the chart with these values: group kubernetes-storage
now contains exactly one rule.
This commit is contained in:
Lance Walters 2026-10-27 02:22:46 -04:00
commit c2eb2b2fa3
3 changed files with 30 additions and 2 deletions

View file

@ -20,6 +20,28 @@ defaultRules:
kubeControllerManager: false
kubeScheduler: false
kubeEtcd: false
# Per-rule opt-out (chart: `defaultRules.disabled.<alertName>`), used instead
# of dropping a whole group.
#
# Group `kubernetes-storage` has five rules. Four of them — both severities of
# KubePersistentVolumeFillingUp and of KubePersistentVolumeInodesFillingUp —
# use kubelet_volume_stats_*. That ALPHA metric set was served
# from kubelet's /metrics/volumes, which was removed in kubelet 1.34
# (kubernetes/kubernetes#133847, fix #133890). This cluster runs kubelet
# v1.36.4, /metrics/volumes returns 404 on all three nodes, and Prometheus
# holds zero series: count(kubelet_volume_stats_used_bytes) -> [] (0 series).
# Those rules therefore load `health=ok, state=inactive` and can never fire —
# which reads as "no PVC is filling up" when in reality nothing is measured.
# Both severities of one alert name are gated by a single `disabled` key.
#
# The group's fifth rule, KubePersistentVolumeErrors, is NOT dead — it is
# built on kube-state-metrics' `kube_persistentvolume_status_phase`, which is
# live here (40 series across 6 PVs when this landed). It stays in the chart
# and is deliberately not disabled: this way no working alert is dropped and
# no chart rule is duplicated by hand.
disabled:
KubePersistentVolumeFillingUp: true
KubePersistentVolumeInodesFillingUp: true
# --- Control-plane targets that are unreachable or lift-heavy for a lab box
kubeProxy: