monitoring: replace the dead kubelet_volume_stats alerts with runner-scoped disk rules

kubelet_volume_stats_* was an ALPHA metric set served from kubelet's
/metrics/volumes endpoint; that endpoint returns 404 on every node of this
cluster (kubelet v1.36.4 — upstream loss in 1.34, kubernetes#133847), and
/metrics carries no volume-stats series. RunnerDindPvcHighWatermark and
RunnerDindPvcCritical therefore could never fire while showing as healthy.

Per-PVC bytes are not measurable here and no scrape config can change that,
so the pair is replaced by RunnerDindDiskHighWatermark (80%) and
RunnerDindDiskCritical (90%): root-filesystem usage on nodes that actually
run a forgejo-runner pod, which is the filesystem holding the dind data-root
under /opt/local-path-provisioner. New arm64 dind PVCs are covered as soon
as their runner is scheduled; nodes without runners (linode) do not
duplicate the generic disk-capacity group.

Also corrects the cause in docs, the dashboard notes and the prune CronJob
comment (it is not a hostPath quirk, the endpoint is gone).
This commit is contained in:
Lance Walters 2026-10-27 02:05:57 -04:00
commit e572f84b0b
8 changed files with 145 additions and 80 deletions

View file

@ -213,11 +213,14 @@ deploying another exporter.
kube-state-metrics see only the runner pod. Per-job CPU/mem/disk on rpi is
therefore unavailable — the board shows rpi's root filesystem instead, because
that is where those containers write.
- **No per-PV usage.** local-path provisions `hostPath` PVs; kubelet publishes no
`kubelet_volume_stats_used_bytes` for hostPath volumes (on this cluster the only
`kubelet_volume_*` series are the collector-duration histograms). The dind PVC's
- **No per-PV usage.** kubelet 1.34+ no longer exports the alpha
`kubelet_volume_stats_*` metrics: its `/metrics/volumes` endpoint 404s on every
node here (kubelet v1.36.4, upstream kubernetes/kubernetes#133847), so there is
nothing to chart per PV and no scrape config would change that. The dind PVC's
20Gi is shown as *requested capacity* next to siriussec's root-filesystem usage,
which is the number that actually produced the DiskPressure evictions.
which is the number that actually produced the DiskPressure evictions — and the
same filesystem is what `RunnerDindDiskHighWatermark` / `RunnerDindDiskCritical`
alert on, scoped to nodes that run a runner.
- **Single-instance Postgres.** Both clusters run `instances: 1`, so replication
lag, streaming replicas and in-recovery are structurally zero. The panels show
the zero and say why instead of being hidden.