Supported Platforms[1]   Connectors Directory[2]

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.

community[3] hardware[4] linux[5] raspberry-pi[6]

Source[7]

Target

Typical platform: Raspberry Pi[8]

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)

Metrics

Type Collected Metrics Specific Attributes
enclosure
  • hw.status{hw.type="enclosure", state="present"}
  • id
  • model
  • serial_number
  • type
  • vendor
fan
  • hw.fan.speed
  • hw.status{hw.type="fan", state="present"}
  • hw.parent.id
  • hw.parent.type
  • id
  • name
  • sensor_location
temperature
  • hw.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
metricshub community connector hardware system
Links:
  • [1] ../supported-platforms.html
  • [2] ../connectors-directory.html
  • [3] tags/community.html
  • [4] tags/hardware.html
  • [5] tags/linux.html
  • [6] tags/raspberry-pi.html
  • [7] https://github.com/metricshub/community-connectors/tree/main/src/main/connector/hardware/Rpi/Rpi.yaml
  • [8] platforms/raspberry-pi.html
Searching...
No results.