Implement Prometheus data exporters for CPU fan temperature and HDD temperature, along with utility functions for logging and command execution.
This commit is contained in:
10
awinlib/PrometheusDataExporterInterface.py
Normal file
10
awinlib/PrometheusDataExporterInterface.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import abc
|
||||
|
||||
|
||||
class IPrometheusDataExporter:
|
||||
@abc.abstractmethod
|
||||
def export(self):
|
||||
pass
|
||||
|
||||
def normalizeGaugename(self, originalName):
|
||||
return originalName.replace("-", "_").lower()
|
||||
Reference in New Issue
Block a user