A lightweight Prometheus exporter for Raspberry Pi hardware metrics.
Currently supports the following metrics from the VideoCore System-on-Chip:
- Component power states
- Clock rates
- Temperatures
- Voltages
- Turbo mode
rpi_exporter
is written in Go, has no dependencies and does not rely on
vcgencmd
to query hardware stats. It interfaces directly with the VideoCore
device so that metric-collection is as lightweight and fast as possible.
Grafana Dashboard: JSON model
# Install to /opt/node_exporter
$ make install
# /etc/systemd/system/rpi_exporter.service
[Unit]
Description=Raspberry Pi Exporter
[Service]
ExecStart=/opt/node_exporter/rpi_exporter -addr=:9110
[Install]
WantedBy=multi-user.target
$ sudo systemctl daemon-reload
$ sudo systemctl enable rpi_exporter.service
$ sudo systemctl start rpi_exporter.service
# /etc/prometheus/prometheus.yml
scrape_configs:
- job_name: "rpi_exporter"
scrape_interval: 5s
static_configs:
- targets: ["localhost:9110"]
$ sudo systemctl restart prometheus.service