rpi_export

command module
v0.0.0-...-c1be29f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2025 License: MIT Imports: 1 Imported by: 0

README

rpi_exporter

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

Grafana Dashboard: JSON model

Installation

Install binary

# Install to /opt/node_exporter
$ make install

Configure systemd

# /etc/systemd/system/rpi_exporter.service
[Unit]
Description=Raspberry Pi Exporter

[Service]
ExecStart=/opt/node_exporter/rpi_exporter

[Install]
WantedBy=multi-user.target
$ sudo systemctl daemon-reload
$ sudo systemctl enable rpi_exporter.service
$ sudo systemctl start rpi_exporter.service

Configure Prometheus

# /etc/prometheus/prometheus.yml
scrape_configs:
  - job_name: "rpi_exporter"
    scrape_interval: 5s
    static_configs:
      - targets: ["localhost:9090"]
$ sudo systemctl restart prometheus.service

Running in a kubernetes cluster

helm repo add givanov https://givanov.github.io/helm-charts
helm repo update
helm install rpi-export givanov/rpi-export


Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
ioctl
Package ioctl implements the ioctl syscall for Raspberry Pi device.
Package ioctl implements the ioctl syscall for Raspberry Pi device.
mbox
Package mbox implements the Mailbox protocol used to communicate between the the VideoCore GPU and ARM processor on a Raspberry Pi.
Package mbox implements the Mailbox protocol used to communicate between the the VideoCore GPU and ARM processor on a Raspberry Pi.
metrics
Package metrics provides utilities for authoring a Prometheus metric exporter for the metrics found in the Mailbox Property Interface of a Raspberry Pi.
Package metrics provides utilities for authoring a Prometheus metric exporter for the metrics found in the Mailbox Property Interface of a Raspberry Pi.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL