Skip to content

Hostpath driver does not export volume metrics #273

@stoneshi-yunify

Description

@stoneshi-yunify

The hostpath driver does not export volume metrics, can not see any kubelet_volume_stats_* metrics in Prometheus.

Per CSI spec:

A Node plugin MUST implement this RPC call if it has GET_VOLUME_STATS node capability or VOLUME_CONDITION node capability. NodeGetVolumeStats RPC call returns the volume capacity statistics available for the volume.

However, the hostpath driver does not enable the GET_VOLUME_STATS node capability, per https://github.com/kubernetes-csi/csi-driver-host-path/blob/master/pkg/hostpath/nodeserver.go#L317 . It only enables the VOLUME_CONDITION node capability.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions