Skip to main content

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.

hardware linux raspberry-pi

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 &amp;&amp; tr -d '\000' &lt; /sys/firmware/devicetree/base/model
    • Output contains: ^Raspberry Pi (regex)

Metrics​

TypeCollected MetricsSpecific Attributes
enclosurehw.status{hw.type="enclosure", state="present"}id
model
serial_number
type
vendor
fanhw.fan.speed
hw.status{hw.type="fan", state="present"}
hw.parent.id
hw.parent.type
id
name
sensor_location
temperaturehw.status{hw.type="temperature", state="present"}
hw.temperature
hw.temperature.limit{limit_type="high.critical"}
hw.temperature.limit{limit_type="high.degraded"}
hw.parent.id
hw.parent.type
id
name
sensor_location