How can I track the usage of Kubernetes disk hard drives?

I have container_fs_usage_bytes

with a prometheus to monitor the root fs root, but it seems that there are no metrics in cAdvisor for other volumes.

+9


source to share


2 answers


I have confirmed that Kubernetes 1.8 exposes 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

+18


source


Metrics for volumes are available through the Kubel Summary API (/ stats / summary). However, each volume plugin must implement its own metrics. Since Kubernetes 1.7, current scope plugins that have implemented metrics include: emptydir, secrets, gce pd, aws ebs, azure file, flocker, and portworx



+4


source







All Articles