scross01 / prometheus-klipper-exporter

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

[Bug] Temperature-Sensor Name Bug #8

Closed Ramalama2 closed 1 year ago

Ramalama2 commented 1 year ago
    /app/collector/collector.go:316 +0x29eb
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
    /go/pkg/mod/github.com/prometheus/client_golang@v1.13.0/prometheus/registry.go:453 +0x10d
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
    /go/pkg/mod/github.com/prometheus/client_golang@v1.13.0/prometheus/registry.go:464 +0x55d
INFO[0000] Beginning to serve on port :9101             
INFO[0003] Starting metrics collection of [process_stats job_queue system_info network_stats directory_info printer_objects] for voron2.user.mwpp.eu:7125 
INFO[0003] Collecting process_stats for voron2.user.mwpp.eu:7125 
INFO[0003] Collecting directory_info for voron2.user.mwpp.eu:7125 
INFO[0003] Collecting job_queue for voron2.user.mwpp.eu:7125 
INFO[0003] Collecting system_info for voron2.user.mwpp.eu:7125 
INFO[0003] Collecting printer_objects for voron2.user.mwpp.eu:7125 
INFO[0003] Found custom sensors: &[TinyFan Octopus cm4 Extrusion-FL] &[] &[] 
panic: "klipper_temperature_sensor_Extrusion-FL_temperature" is not a valid metric name
[temperature_sensor Extrusion-FL]
sensor_type: ATC Semitec 104NT-4-R025H42G
sensor_pin: T3
min_temp: 0
max_temp: 125

Probably the minus is an issue? I can rename that to a underscore, just running a long print job rn :-)

Cheers :-)