How to monitor disk usage of kubernetes persistent volumes?

ghz 1years ago ⋅ 6780 views

Question

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

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