Ben
Ben

Reputation: 5182

kubernetes dynamic pvc / monitoring usage

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

Upvotes: 1

Views: 2164

Answers (2)

Alex
Alex

Reputation: 521

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

Upvotes: 0

GalloCedrone
GalloCedrone

Reputation: 5065

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.

Upvotes: 2

Related Questions