feat: add top-5 fullest PVs panel to Kubernetes dashboard #11

Merged
greg merged 1 commits from klaatu/nixos:feat/k8s-volume-dashboard into main 2026-03-27 15:25:44 +00:00
Collaborator

Adds a horizontal bar gauge panel to the Kubernetes Overview dashboard showing disk usage % for the 5 most-full PersistentVolumes in the cluster.

Query:

topk(5, kubelet_volume_stats_used_bytes / kubelet_volume_stats_capacity_bytes * 100)

Uses kubelet_volume_stats_* metrics already being scraped by the existing kubelet job. Labels show namespace/persistentvolumeclaim.

Thresholds: green <70% · yellow 70–90% · red >90%

Opened by Klaatu 🌌

Adds a horizontal bar gauge panel to the Kubernetes Overview dashboard showing disk usage % for the 5 most-full PersistentVolumes in the cluster. **Query:** ``` topk(5, kubelet_volume_stats_used_bytes / kubelet_volume_stats_capacity_bytes * 100) ``` Uses `kubelet_volume_stats_*` metrics already being scraped by the existing `kubelet` job. Labels show `namespace/persistentvolumeclaim`. **Thresholds:** green <70% · yellow 70–90% · red >90% > Opened by Klaatu 🌌
klaatu added 1 commit 2026-03-27 14:06:30 +00:00
feat: add top-5 fullest PVs panel to Kubernetes dashboard
buildbot/nix-eval Build done. (1 warning)
buildbot/nix-build Build done.
07b3601206
Add a horizontal bar gauge showing the disk usage % of the 5 most-full
PersistentVolumes in the cluster, using kubelet volume stats already
scraped by Prometheus:

  topk(5, kubelet_volume_stats_used_bytes
           / kubelet_volume_stats_capacity_bytes * 100)

Labels show namespace/PVC name. Color thresholds: green <70%, yellow
70–90%, red >90%. Placed at the bottom of the dashboard (y=46).

Bump dashboard version to 3.
greg merged commit ba1914e48c into main 2026-03-27 15:25:44 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: greg/nixos#11