Libre Hardware Monitor
Description
This connector enables hardware monitoring for processors, temperatures, fans, voltages, GPU, memory modules, physical disk of a computer.
Superseded Connector
This connector is superseded by:
Target
Typical platform: Microsoft Windows
Operating system: Microsoft Windows
Prerequisites
Leverages: Libre Hardware Monitor
Technology and protocols: WMI
Examples
CLI
metricshub HOSTNAME -t win -c +LibreHardwareMonitor --wmi -u USER
metricshub.yaml
resourceGroups:
<RESOURCE_GROUP>:
resources:
<HOSTNAME-ID>:
attributes:
host.name: <HOSTNAME> # Change with actual host name
host.type: win
connectors: [ +LibreHardwareMonitor ] # Optional, to load only this connector
protocols:
wmi:
username: <USERNAME> # Change with actual credentials
password: <PASSWORD> # Encrypted using metricshub-encrypt
Connector Activation Criteria
The Libre Hardware Monitor connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:
- The device type must be one of: NT
- The WMI query below succeeds:
- Namespace:
root\LibreHardwareMonitor - Query:
SELECT Name FROM WMINET_InstrumentedAssembly
- Namespace:
Metrics
| Type | Collected Metrics | Specific Attributes |
|---|---|---|
| cpu | hw.cpu.speedhw.energy{hw.type="cpu"}hw.power{hw.type="cpu"}hw.status{hw.type="cpu", state="present"} | hw.parent.idhw.parent.typeidmodelname |
| enclosure | hw.status{hw.type="enclosure", state="present"} | idmodelnametypevendor |
| fan | hw.fan.speedhw.status{hw.type="fan", state="present"} | hw.parent.idhw.parent.typeidname |
| gpu | hw.energy{hw.type="gpu"}hw.gpu.io{direction="receive"}hw.gpu.io{direction="transmit"}hw.gpu.memory.limithw.gpu.memory.utilizationhw.gpu.utilization{task="decoder"}hw.gpu.utilization{task="encoder"}hw.gpu.utilization{task="general"}hw.power{hw.type="gpu"}hw.status{hw.type="gpu", state="present"} | hw.parent.idhw.parent.typeidnamevendor |
| memory | hw.memory.limithw.status{hw.type="memory", state="present"} | hw.parent.idhw.parent.typeidname |
| physical_disk | hw.physical_disk.endurance_utilization{state="remaining"}hw.status{hw.type="physical_disk", state="present"} | hw.parent.idhw.parent.typeidnamevendor |
| temperature | hw.status{hw.type="temperature", state="present"}hw.temperaturehw.temperature.limit{limit_type="high.critical"}hw.temperature.limit{limit_type="high.degraded"} | hw.parent.idhw.parent.typeidnamesensor_location |
| voltage | hw.status{hw.type="voltage", state="present"}hw.voltage | hw.parent.idhw.parent.typeidnamesensor_location |