A prometheus exporter for 3D printers exposing Prusa Connect's API.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
alazyreader b77101bfd3 Merge pull request 'Update module github.com/prometheus/client_golang to v1.15.1' (#5) from renovate/github.com-prometheus-client_golang-1.x into master
Reviewed-on: #5
4 weeks ago
etc add basic plist for mac usage 1 year ago
.gitignore initial wrapper around Prusa Connect API 1 year ago
README.md upgrade in prep for PC 4.4.0 10 months ago
go.mod Update module github.com/prometheus/client_golang to v1.15.1 4 weeks ago
go.sum Update module github.com/prometheus/client_golang to v1.15.1 4 weeks ago
main.go upgrade in prep for PC 4.4.0 10 months ago
main_test.go add more metrics that only appear when a print job is running 1 year ago
renovate.json Add renovate.json 2 months ago

README.md

Prusa Connect Prometheus Exporter

Version v0.1.0 of this exporter supports the pre-4.4.0 changes to the Prusa Connect API (non-API-key version).

Current master branch supports the new, 4.4.0-beta2 release of Prusa Connect as well as the older API.

Usage

./prusa-connect-exporter -h

  • apikey Prusa Connect API key (see Main Menu -> Settings -> Network on the printer). If no key is provided, exporter assumes the older API layout when querying the printer.
  • hostname Hostname the Prusa Connect API is available at (assumes http) (default "localhost")
  • interval How often, in seconds, to query the API (default 2)
  • path Local path to export metrics on (default "metrics")
  • port Local port to export metrics on (default "2112")