Longhorn Metrics for Monitoring

Volume

NameDescriptionExample
longhorn_volume_actual_size_bytesActual space used by each replica of the volume on the corresponding nodelonghorn_volume_actual_size_bytes{node=”worker-2”,volume=”testvol”} 1.1917312e+08
longhorn_volume_capacity_bytesConfigured size in bytes for this volumelonghorn_volume_capacity_bytes{node=”worker-2”,volume=”testvol”} 6.442450944e+09
longhorn_volume_stateState of this volume: 1=creating, 2=attached, 3=Detached, 4=Attaching, 5=Detaching, 6=Deletinglonghorn_volume_state{node=”worker-2”,volume=”testvol”} 2
longhorn_volume_robustnessRobustness of this volume: 0=unknown, 1=healthy, 2=degraded, 3=faultedlonghorn_volume_robustness{node=”worker-2”,volume=”testvol”} 1

Node

NameDescriptionExample
longhorn_node_statusStatus of this node: 1=true, 0=falselonghorn_node_status{condition=”ready”,condition_reason=””,node=”worker-2”} 1
longhorn_node_count_totalTotal number of nodes in the Longhorn systemlonghorn_node_count_total 4
longhorn_node_cpu_capacity_millicpuThe maximum allocatable CPU on this nodelonghorn_node_cpu_capacity_millicpu{node=”worker-2”} 2000
longhorn_node_cpu_usage_millicpuThe CPU usage on this nodelonghorn_node_cpu_usage_millicpu{node=”pworker-2”} 186
longhorn_node_memory_capacity_bytesThe maximum allocatable memory on this nodelonghorn_node_memory_capacity_bytes{node=”worker-2”} 4.031229952e+09
longhorn_node_memory_usage_bytesThe memory usage on this nodelonghorn_node_memory_usage_bytes{node=”worker-2”} 1.833582592e+09
longhorn_node_storage_capacity_bytesThe storage capacity of this nodelonghorn_node_storage_capacity_bytes{node=”worker-3”} 8.3987283968e+10
longhorn_node_storage_usage_bytesThe used storage of this nodelonghorn_node_storage_usage_bytes{node=”worker-3”} 9.060941824e+09
longhorn_node_storage_reservation_bytesThe reserved storage for other applications and system on this nodelonghorn_node_storage_reservation_bytes{node=”worker-3”} 2.519618519e+10

Disk

NameDescriptionExample
longhorn_disk_capacity_bytesThe storage capacity of this disklonghorn_disk_capacity_bytes{disk=”default-disk-8b28ee3134628183”,node=”worker-3”} 8.3987283968e+10
longhorn_disk_usage_bytesThe used storage of this disklonghorn_disk_usage_bytes{disk=”default-disk-8b28ee3134628183”,node=”worker-3”} 9.060941824e+09
longhorn_disk_reservation_bytesThe reserved storage for other applications and system on this disklonghorn_disk_reservation_bytes{disk=”default-disk-8b28ee3134628183”,node=”worker-3”} 2.519618519e+10

Instance Manager

NameDescriptionExample
longhorn_instance_manager_cpu_usage_millicpuThe cpu usage of this longhorn instance managerlonghorn_instance_manager_cpu_usage_millicpu{instance_manager=”instance-manager-e-2189ed13”,instance_manager_type=”engine”,node=”worker-2”} 80
longhorn_instance_manager_cpu_requests_millicpuRequested CPU resources in kubernetes of this Longhorn instance managerlonghorn_instance_manager_cpu_requests_millicpu{instance_manager=”instance-manager-e-2189ed13”,instance_manager_type=”engine”,node=”worker-2”} 250
longhorn_instance_manager_memory_usage_bytesThe memory usage of this longhorn instance managerlonghorn_instance_manager_memory_usage_bytes{instance_manager=”instance-manager-e-2189ed13”,instance_manager_type=”engine”,node=”worker-2”} 2.4072192e+07
longhorn_instance_manager_memory_requests_bytesRequested memory in Kubernetes of this longhorn instance managerlonghorn_instance_manager_memory_requests_bytes{instance_manager=”instance-manager-e-2189ed13”,instance_manager_type=”engine”,node=”worker-2”} 0
longhorn_instance_manager_proxy_grpc_connectionThe number of proxy gRPC connection of this longhorn instance managerlonghorn_instance_manager_proxy_grpc_connection{instance_manager=”instance-manager-e-814dfd05”, instance_manager_type=”engine”, node=”worker-2”} 0

Manager

NameDescriptionExample
longhorn_manager_cpu_usage_millicpuThe CPU usage of this Longhorn Managerlonghorn_manager_cpu_usage_millicpu{manager=”longhorn-manager-5rx2n”,node=”worker-2”} 27
longhorn_manager_memory_usage_bytesThe memory usage of this Longhorn Managerlonghorn_manager_memory_usage_bytes{manager=”longhorn-manager-5rx2n”,node=”worker-2”} 2.6144768e+07

Backup

NameDescriptionExample
longhorn_backup_actual_size_bytesActual size of this backuplonghorn_backup_actual_size_bytes{backup=”backup-4ab66eca0d60473e”,volume=”testvol”} 6.291456e+07
longhorn_backup_stateState of this backup: 0=New, 1=Pending, 2=InProgress, 3=Completed, 4=Error, 5=Unknownlonghorn_backup_state{backup=”backup-4ab66eca0d60473e”,volume=”testvol”} 3