Raspberry Pi Hardware
Description
Monitors the Raspberry Pi board (model and serial number), its CPU temperature and, when the kernel exposes a tachometer, the cooling fan speed in RPM.
Target
Typical platform: Raspberry Pi
Operating system: Linux
Prerequisites
Leverages: Linux device tree, thermal and hwmon sysfs interfaces
Technology and protocols: Commands
Examples
CLI
metricshub HOSTNAME -t linux -c +Rpi --ssh -u USER
metricshub.yaml
resourceGroups:
<RESOURCE_GROUP>:
resources:
<HOSTNAME-ID>:
attributes:
host.name: <HOSTNAME> # Change with actual host name
host.type: linux
connectors: [ +Rpi ] # Optional, to load only this connector
protocols:
ssh:
username: <USERNAME> # Change with actual credentials
password: <PASSWORD> # Encrypted using metricshub-encrypt
Connector Activation Criteria
The Raspberry Pi Hardware connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:
- The command below succeeds on the monitored host:
- Command:
test -r /sys/firmware/devicetree/base/model && tr -d '\000' < /sys/firmware/devicetree/base/model - Output contains:
^Raspberry Pi(regex)
- Command:
Metrics
| Type | Collected Metrics | Specific Attributes |
|---|---|---|
| enclosure | hw.status{hw.type="enclosure", state="present"} | idmodelserial_numbertypevendor |
| fan | hw.fan.speedhw.status{hw.type="fan", state="present"} | hw.parent.idhw.parent.typeidnamesensor_location |
| 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 |