scross01 / prometheus-klipper-exporter

Prometheus Exporter for Klipper
MIT License
48 stars 10 forks source link

add `output_pin` metric collection to `printer_objects` module #5

Closed scross01 closed 1 year ago

scross01 commented 1 year ago

Add metric collection for custom output pins.

https://moonraker.readthedocs.io/en/latest/printer_objects/

output_pin pin_name

Enabled when [output_pin pin_name] is included in printer.cfg. It is possible for multiple output pins to be configured.

{
    "value": 0.0
}

An output_pin reports the following state: