Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cavaliercoder/rpi_export
Prometheus exporter for Raspberry Pi hardware metrics
https://github.com/cavaliercoder/rpi_export
Last synced: 3 months ago
JSON representation
Prometheus exporter for Raspberry Pi hardware metrics
- Host: GitHub
- URL: https://github.com/cavaliercoder/rpi_export
- Owner: cavaliercoder
- License: mit
- Created: 2023-01-04T15:39:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-28T03:17:54.000Z (12 months ago)
- Last Synced: 2024-06-21T19:53:20.122Z (5 months ago)
- Language: Go
- Size: 1.18 MB
- Stars: 28
- Watchers: 4
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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](assets/grafana.png)
Grafana Dashboard: [JSON model](assets/grafana_dashboard.json?raw=1)
# Installation
## Install binary
```shell
# Install to /opt/node_exporter
$ make install
```## Configure systemd
```ini
# /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
``````shell
$ sudo systemctl daemon-reload
$ sudo systemctl enable rpi_exporter.service
$ sudo systemctl start rpi_exporter.service
```## Configure Prometheus
```yaml
# /etc/prometheus/prometheus.yml
scrape_configs:
- job_name: "rpi_exporter"
scrape_interval: 5s
static_configs:
- targets: ["localhost:9110"]
``````shell
$ sudo systemctl restart prometheus.service
```