Can't get the usage of PVC through kubelet metrics

5/20/2019

I have a Kubernetes 1.9.11 cluster on baremetal machines running Coreos 1576.5.0.

Recently I deployed a Glusterfs 4.1.7 cluster, managed by Heketi 8, and created a lot of PVCs to be used by some statfulset applications. The problem is, I can't get metrics about these PVCs through Kublet's 10250 port:

curl -k https://aa05:10250/metrics 2>/dev/null | grep kubelet_volume_stats | wc -l
0

So, how can I get these metrics?

Any hints will be appreciated.

-- Kun Li
kubernetes

2 Answers

5/22/2019

I think this should be helpful.

curl -s https://aa05:10250/metrics -k|grep kubelet_volume|wc -L
0
-- Tech at The Sparks Foundation
Source: StackOverflow

5/27/2019

It looks like kubelet is implementing metrics for volumes in release-1.9.x,but their naming is quite different from what you are grepping for. Try to grep for volume_stats.

-- Adam Otto
Source: StackOverflow