vultr / vultr-csi

Container Storage Interface (CSI) Driver for Vultr Block Storage
Apache License 2.0
40 stars 17 forks source link

Volume metrics #67

Closed robcxyz closed 1 year ago

robcxyz commented 2 years ago

Is your feature request related to a problem? Please describe.

I am trying to monitor PVs and am not able to get the kubelet_volume_stats_available_bytes because it is no longer supported by default in the node exporter.

Describe the solution you'd like

Include the metrics similar to how the AWS EBS CSI driver did it. I think CSI drivers themselves need to implement these metrics since k8s v1.13 or something around there though I could be wrong.

Issue: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/524 PR: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/677

Describe alternatives you've considered

I've been trying to get my relabel configs right to monitor a group of PVs and am not able to get the PV name out of the node exporter to be able to match node_filesystem_free_bytes to the right PV. This is broadly needed to monitor sensitive PVs running on VKE that might need volumes added to the array as they will up.

happytreees commented 1 year ago

@robcxyz This feature has been implemented into the CSI as of v0.9.0 #115