Monitoring Persistent Volumes in K8s v1.13.3

2/28/2019

Apparently the kubelet metrics regarding PVs were made unavailable from K8s v1.12

It used to be that you could scrape for:

kubelet_volume_stats_available_bytes
kubelet_volume_stats_capacity_bytes
kubelet_volume_stats_inodes
kubelet_volume_stats_inodes_free
kubelet_volume_stats_inodes_used
kubelet_volume_stats_used_bytes

Our cluster is running v1.13.3 and we operate Kafka, Prometheus, InfluxDB and MongoDB all inside Kubernetes with PVCs., so getting usage statistics on these volumes is very important.

Has anyone found other ways to gather these metrics? I've heard of possibility to load a sidecar container with a node-exporter on every container that uses PVCs. Can be do-able but I'd prefer a more elegant solution.

-- Jasper Vaneessen
kubelet
kubernetes
monitoring
persistent-volume-claims
persistent-volumes

0 Answers