---
date_published: 2026-11-02
date_modified: 2026-11-02
canonical_url: https://metricshub.org/community-connectors/connectors/rpi.html
---

 [Supported Platforms](../supported-platforms.html)   [Connectors Directory](../connectors-directory.html)

# 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](tags/community.html) [hardware](tags/hardware.html) [linux](tags/linux.html) [raspberry-pi](tags/raspberry-pi.html)

[Source](https://github.com/metricshub/community-connectors/tree/main/src/main/connector/hardware/Rpi/Rpi.yaml)

## Target

Typical platform: **[Raspberry Pi](platforms/raspberry-pi.html)**

Operating system: **Linux**

## Prerequisites

Leverages: **Linux device tree, thermal and hwmon sysfs interfaces**

Technology and protocols: **Commands**

## Examples

### CLI

```batch
metricshub HOSTNAME -t linux -c +Rpi --ssh -u USER
```

### metricshub.yaml

```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` |
