<p>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</p>

<p>Check <a href="https://github.com/prometheus/prometheus" rel="nofollow noreferrer">Prometeus</a>.</p>

<p>At the moment this option is available through Kubernetes, but merely for the 1.8 version on.
As you can check <a href="https://github.com/coreos/prometheus-operator/issues/485" rel="nofollow noreferrer">here</a> there is a whole topic regarding this feature request and <a href="https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/server/stats/volume_stat_calculator.go#L97" rel="nofollow noreferrer">the code</a> that implement these features.</p>

<p>Kubernetes 1.8 expose metrics for prometheus.</p>

<ul>
<li>kubelet_volume_stats_available_bytes</li>
<li>kubelet_volume_stats_capacity_bytes </li>
<li>kubelet_volume_stats_inodes</li>
<li>kubelet_volume_stats_inodes_free </li>
<li>kubelet_volume_stats_inodes_used</li>
<li>kubelet_volume_stats_used_bytes</li>
</ul>

<p>Source <a href="https://stackoverflow.com/questions/44718268/how-to-monitor-disk-usage-of-kubernetes-persistent-volumes">link</a> of the metrics.</p>
