kubernetes dynamic pvc / monitoring usage

2/3/2018

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

-- Ben
google-cloud-platform
kubernetes
storage

2 Answers

2/6/2018

Prometheus, Prometheus Operator, Alertmanager and Grafana

Depending on your Kubernetes version, you may use these very easy to install setups:

Prometheus 1.x link

Prometheus 2.x link

I recommend Prometheus 2

-- Alex
Source: StackOverflow

2/6/2018

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
Source: StackOverflow