How to monitor disk usage of kubernetes persistent volumes?

hiroshi picture hiroshi · Jun 23, 2017 · Viewed 19.2k times · Source

I have container_fs_usage_bytes with prometheus to monitor container root fs, but it seems that there is no metrics for other volumes in cAdvisor.

Answer

hiroshi picture hiroshi · Nov 5, 2017

I confirmed that 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