Hostdisk Metrics
Hostdisk CSI exposes a comprehensive set of Prometheus metrics through dedicated exporters, offering real-time visibility into the health and utilization of host disks managed by the CSI driver. These metrics cover key aspects such as disk capacity, usage, formatting status, and error counts, allowing administrators to monitor disk performance and detect potential issues proactively within their Kubernetes environments.
Labels
Metrics reported by Hostdisk Manager use following labels:
Label | Description |
---|---|
node | Name of the node disk is present on. Is only present if disk is connected to monitored node. |
disk_name | Path of the device. Is only present if disk is connected to monitored node. |
uuid | UUID of the filesystem disk is formatted to. Is only present if device is formatted. |
filesystem | Name of the filesystem disk is formatted to. Is only present if device is formatted. |
Metrics
Following metrics are exported by Hostdisk Manager for each hostdisk:
Metric | Description |
---|---|
hostdisk_csi_disk_space_total_bytes | Total space on the disk. |
hostdisk_csi_disk_space_used_bytes | Used space on the disk (is only available for mounted disks, so those that are used by some pod). |
hostdisk_csi_disk_space_available_bytes | Total available size of the disk (is only available for mounted disks, so those that are used by some pod). |
hostdisk_csi_disk_status_ready | Indicates whether the disk is ready to be used (1 for ready, 0 for not ready). |
hostdisk_csi_disk_status_formatted | Indicates whether the disk is formatted (1 for formatted, 0 for not formatted). |
hostdisk_csi_disk_present_on_node | Indicates whether the disk is present on the node (1 for present, 0 for not present). |
hostdisk_csi_disk_status_smart | SMART status of the disk (–1 for unknown, 0 for failing, 1 for passing). |
hostdisk_csi_disk_time_processing_seconds | Histogram of disk processing duration in seconds. |
hostdisk_csi_disk_errors_total | Total number of reconciliation errors encountered by the disk. |