Python3 server that reads Grove Room Sensors and exports the values for Prometheus scraping
The sensors are read every 5 seconds
-
Raspberry PI. Tested on Raspberry Pi 4 Model B
You should have the following software installed already.
-
Grafana
-
Prometheus
-
Edit the
User
field insystemd/grovemonitoring.service
to your linux account -
Edit the path to
app.py
inExecStart
-
Install the systemd service to /etc/systemd/system/grovemonitoring.service
$ sudo cp systemd/grovemonitoring.service /etc/systemd/system/
$ sudo systemctl daemon-reload
$ sudo systemctl start grovemonitoring
$ sudo systemctl status grovemonitoring
$ sudo systemctl enable grovemonitoring # Enable on boot
-
Check the exported metrics at
localhost:8000
-
Import the GroveMonitoring dashboard into your Grafana instance
13779
https://grafana.com/grafana/dashboards/13779