1

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
  • 5,030
  • 6
  • 53
  • 94

2 Answers2

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
0

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
  • 513
  • 6
  • 14