Is there a simple way to get the current attached volume state (think "space left on disk", or the opposite) ? Using stackdriver, this info is not provided. Not to be found neither within the gcloud console. I was wondering if this was accessible besides connecting to the instance and check it manually
Asked
Active
Viewed 1,910 times
1
-
With "instance" do you mean the node in the kubernetes cluster or of the persistent volume attached? – GalloCedrone Feb 06 '18 at 09:33
-
The persistent volume yes – Ben Feb 06 '18 at 10:01
-
Am wondering how to make the title more accurate; thought naming pvc first would imply it – Ben Feb 06 '18 at 12:04
2 Answers
2
Check Prometeus.
At the moment this option is available through Kubernetes, but merely for the 1.8 version on. As you can check here there is a whole topic regarding this feature request and the code that implement these features.
Kubernetes 1.8 expose metrics for prometheus.
- 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
Source link of the metrics.

GalloCedrone
- 4,869
- 3
- 25
- 41