Kubelet Volume Metrics Support
Kubelet exposes the following metrics:
Those metrics measure information related to a PVC’s filesystem inside a Longhorn block device.
They are different than longhorn_volume_* metrics, which measure information specific to a Longhorn block device.
You can set up a monitoring system that scrapes Kubelet metric endpoints to obtains a PVC’s status and set up alerts for abnormal events, such as the PVC being about to run out of storage space.
A popular monitoring setup is prometheus-operator/kube-prometheus-stack, which scrapes kubelet_volume_stats_*
metrics and provides a dashboard and alert rules for them.
In v1.1.0, Longhorn CSI plugin supports the NodeGetVolumeStats
RPC according to the CSI spec.
This allows the kubelet to query the Longhorn CSI plugin for a PVC’s status.
The kubelet then exposes that information in kubelet_volume_stats_*
metrics.
© 2019-2024 Longhorn Authors | Documentation Distributed under CC-BY-4.0
© 2024 The Linux Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.