Skip to main content

Metrics

HwameiStor exposes a variety of metrics through hwameistor-exporter, which can be obtained in the following ways:

curl hwameistor-exporter:80/metrics

The following are some examples of the metrics obtained:

Localdisk Metrics

# HELP hwameistor_localdisk_capacity The capacity of the localdisk.
# TYPE hwameistor_localdisk_capacity gauge
hwameistor_localdisk_capacity{devPath="/dev/sda",nodeName="k8s-master",owner="system",reserved="true",status="Bound",type="HDD"} 1.37438953472e+11
NameDescriptionLabels (Values)Metric type
hwameistor_localdisk_capacityLocaldisk capacity metricdevPath,nodeName,owner(system,local-disk-manager,local-storage,Unknown),reserved(true,false),status(Available,Bound),type(HDD,SSD,NVMe)gauge

Localstoragenode Metrics

# HELP hwameistor_localstoragenode_capacity The storage capacity of the localstoragenode.
# TYPE hwameistor_localstoragenode_capacity gauge
hwameistor_localstoragenode_capacity{kind="Free",nodeName="k8s-master",poolName="HDD"} 1.07369988096e+11

# HELP hwameistor_localstoragenode_status The status of the localstoragenode.
# TYPE hwameistor_localstoragenode_status gauge
hwameistor_localstoragenode_status{nodeName="k8s-master",status="Ready"} 1

# HELP hwameistor_localstoragenode_volumecount The volume count of the localstoragenode.
# TYPE hwameistor_localstoragenode_volumecount gauge
hwameistor_localstoragenode_volumecount{kind="Free",nodeName="k8s-master",poolName="HDD"} 1000
NameDescriptionLabels (Values)Metric type
hwameistor_localstoragenode_capacityLocalstoragenode capacity metrickind(Free,Used),nodeName,poolName(HDD,SSD,NVMe)gauge
hwameistor_localstoragenode_statusLocalstoragenode status metricnodeName,status(Ready,NotReady)gauge
hwameistor_localstoragenode_volumecountLocalstoragenode volume metrickind(Free,Used),nodeName,poolName(HDD,SSD,NVMe)gauge

Localvolume Metrics

# HELP hwameistor_localvolume_capacity The capacity of the localvolume.
# TYPE hwameistor_localvolume_capacity gauge
hwameistor_localvolume_capacity{kind="Allocated",mountedOn="k8s-node2",poolName="HDD",type="Convertible",volumeName="pvc-d1964bc9-9b0b-456d-be1a-6d0de9b47589"} 1.073741824e+09

# HELP hwameistor_localvolume_status The status summary of the localvolume.
# TYPE hwameistor_localvolume_status gauge
hwameistor_localvolume_status{mountedOn="k8s-node2",poolName="HDD",status="Ready",type="Convertible",volumeName="pvc-d1964bc9-9b0b-456d-be1a-6d0de9b47589"} 1
NameDescriptionLabels (Values)Metric type
hwameistor_localvolume_capacityLocalvolume capacity metrickind(Allocated,Used),mountedOn,poolName(HDD,SSD,NVMe),type(Convertible,NonHA),volumeNamegauge
hwameistor_localvolume_statusLocalvolume status metricmountedOn,poolName(HDD,SSD,NVMe),status(Ready,NotReady),type(Convertible,NonHA),volumeNamegauge

Localvolumereplica Metrics

# HELP hwameistor_localvolumereplica_capacity The capacity of the localvolumereplica.
# TYPE hwameistor_localvolumereplica_capacity gauge
hwameistor_localvolumereplica_capacity{nodeName="k8s-node2",poolName="HDD",volumeName="pvc-d1964bc9-9b0b-456d-be1a-6d0de9b47589"} 1.073741824e+09

# HELP hwameistor_localvolumereplica_status The status of the localvolumereplica.
# TYPE hwameistor_localvolumereplica_status gauge
hwameistor_localvolumereplica_status{nodeName="k8s-node2",poolName="HDD",status="Ready",volumeName="pvc-d1964bc9-9b0b-456d-be1a-6d0de9b47589"} 1
NameDescriptionLabels (Values)Metric type
hwameistor_localvolumereplica_capacityLocalvolumereplica capacity metricnodeName,poolName(HDD,SSD,NVMe),volumeNamegauge
hwameistor_localvolumereplica_statusLocalvolumereplica status metricpoolName(HDD,SSD,NVMe),status(Ready,NotReady),volumeNamegauge