"lhm_exporter" collects stats via "Libre Hardware Monitor" and creates a prometheus readable metric file.
Download lhm_exporter.exe from here:
For lhm_exporter to work, it needs the tool "Libre Hardware Monitor", which you can download from here:
Put all the files into a folder called "Libre Hardware Monitor" next to the lhm_exporter.exe. Start once and change the following options in "Libre Hardware Monitor":
- Options -> Enable first 4 Options
Prometheus collect the data create via windows_exporter. Download the windows_exporter here and install it:
- https://github.com/prometheus-community/windows_exporter You need to start windows_exporter with at least the following collectors enabled: 'textfile'
If you like to install the lhm_exporter as a service you can do this with "nssm". You get the exe here:
.\nssm.exe install lhm_exporter lhm_exporter.exe
.\nssm.exe set lhm_exporter Description "Libre Hardware Monitor Exporter For Prometheus"
.\nssm set lhm_exporter AppDirectory <path to lhm_exporter.exe-directory>
.\nssm.exe remove lhm_exporter
Use the file "grafana_dashboard.json" to import the lhm_exporter-dashboard into your Grafana instance.
Tested with the following hardware. Other hardware may needs adaptation.
- Processor
- AMD Ryzen 9 5900X
- AMD Ryzen 7 9800X3D
- GPU
- NVIDIA GeForce RTX 3080
- AMD Radeon RX 6800 XT
PS>Install-Module ps2exe
PS>Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
PS>Invoke-ps2exe .\lhm_exporter.ps1 .\lhm_exporter.exe
PS>Set-ExecutionPolicy -ExecutionPolicy Undefined -Scope CurrentUser




