Skip to content

givanov/rpi_export

 
 

Repository files navigation

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

About

Prometheus exporter for Raspberry Pi hardware metrics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Go 90.1%
  • Makefile 8.8%
  • Dockerfile 1.1%