Skip to content

Commit

Permalink
Update metrics.py
Browse files Browse the repository at this point in the history
fixed core temperature gauge
  • Loading branch information
regendrogenbogen authored and tg44 committed Nov 2, 2023
1 parent 4ca8931 commit af809e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octoprint_prometheus_exporter/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Metrics:
def __init__(self, logger) -> None:
self._logger = logger
if self.get_raspberry_core_temperature() is not None:
raspberry_core_temp = Gauge('octoprint_raspberry_core_temperature', 'Core temperature of Raspberry Pi', registry=self.registry)
self.raspberry_core_temp = Gauge('octoprint_raspberry_core_temperature', 'Core temperature of Raspberry Pi', registry=self.registry)
self.timer = RepeatedTimer(1.0, self.report_raspberry_core_temperature)
self.timer.start()
else:
Expand Down

0 comments on commit af809e9

Please sign in to comment.