lhm_exporter reads hardware sensor data from LibreHardwareMonitor and writes it to a .prom file for windows_exporter.
- reads available hardware and sensors
- generates Prometheus textfile output
- refreshes the file periodically
- can run as a Windows Service
- Run the application as Administrator.
- Make sure
windows_exporteris configured to read textfile collectors. - Keep the generated
.promfile in thetextfile_inputsfolder.
There are two ways to use lhm_exporter:
Use this option if you want to compile and install it yourself.
Requirements:
- Windows
- .NET 8 SDK
- PowerShell 5.1 or later
- Administrator rights
Source code and setup guide: scripts/README.md
Use this option if you want the quickest installation path.
- Download the package from the GitHub Releases page
- Run the release package included with the download
lhm_exporter/- application source codescripts/Install-LhmExporter.ps1- setup scriptscripts/Install-LhmExporter.cmd- CMD wrapper for the setup script
- folder:
C:\Program Files\windows_exporter\textfile_inputs - file:
lhm_exporter.prom - refresh interval:
10seconds