How to monitor disk usage of kubernetes persistent volumes?

后端 未结 2 624
南旧
南旧 2020-12-14 20:58

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.

相关标签:
2条回答
  • 2020-12-14 21:10

    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
    0 讨论(0)
  • 2020-12-14 21:24

    Metrics for volumes are available via the kubelet summary API (/stats/summary). However, each volume plugin has to implement their own metrics. As of Kubernetes 1.7, the current volume plugins that have implemented metrics include: emptydir, secrets, gce pd, aws ebs, azure file, flocker, and portworx

    0 讨论(0)
提交回复
热议问题