Skip to content

Directory Info

Module: directory_info (optional)
API Endpoint: /server/files/directory

Collects disk usage statistics for the gcodes directory on the Klipper host.

Metrics

MetricTypeDescription
klipper_disk_usage_availableGaugeAvailable disk space in bytes
klipper_disk_usage_totalGaugeTotal disk space in bytes
klipper_disk_usage_usedGaugeUsed disk space in bytes

Example PromQL

promql
# Disk usage percentage
(klipper_disk_usage_used / klipper_disk_usage_total) * 100

# Available space in GB
klipper_disk_usage_available / 1073741824

Released under the MIT License.