Skip to content

Device Power

Module: device_power (default) API Endpoints: /machine/device_power/devices and /machine/device_power/status

Monitors the state of configurable power devices (smart plugs, GPIO relays, etc.) defined in moonraker.conf under [power <device_name>] sections.

Metrics

MetricTypeLabelsDescription
klipper_power_device_infoGauge=1device, typePower device information with hardware type
klipper_power_device_statusGaugedeviceDevice on/off status (1=on, 0=off/error/init)
klipper_power_device_state_infoGauge=1device, stateCurrent device state (on, off, error, init)

Example PromQL

promql
# Check if a specific device is on
klipper_power_device_status{device="printer"}

# Show current state of all power devices
klipper_power_device_state_info

# Count of devices that are currently on
count(klipper_power_device_status == 1)

Released under the MIT License.