No kubelet metrics kubelet_volume_*

  • Kubernetes version: 1.11.5
  • Cloud being used: bare-metal
  • Installation method: kubespray
  • Host OS: Ubuntu 18.04.2 LTS 4.15.0-46-generic
  • CNI and version: calico v3.1.3
  • CRI and version: docker://18.6.1

Hello, I can’t find following metrics in curl https://host_ip:10250/metrics :

  1. kubelet_volume_stats_capacity_bytes;
  2. kubelet_volume_stats_available_bytes;

can anybody help me?

What type of volume(s) are you using?

It is Fiber channel - /dev/mapper/mpathd

The FC volume type does not support metrics unfortunately: https://github.com/kubernetes/kubernetes/blob/master/pkg/volume/fc/fc.go#L326

Not all volume plugins emit them =/

1 Like