Skip to content

cavaliercoder/rpi_export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 -addr=:9110

[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:9110"]
$ sudo systemctl restart prometheus.service

About

Prometheus exporter for Raspberry Pi hardware metrics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published