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:
2025-02-05 10:47:08 +08:00
parent d34588467b
commit 665a8ea05a
8 changed files with 546 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import abc
class IPrometheusDataExporter:
@abc.abstractmethod
def export(self):
pass
def normalizeGaugename(self, originalName):
return originalName.replace("-", "_").lower()