-
Notifications
You must be signed in to change notification settings - Fork 3
Viewing metric graphs
With heatmon running (interactively or as a service), Prometheus which has been running as service in the background since Completing the Raspberry Pi Setup should start collecting data from it.
Visit the Prometheus "Status/Targets" tab at (you need to update the hostname 'newhostname' to match your RPi's hostname/IP address) to hopefully see "opentrv" as "UP", like the picture below. It only scans once a minute, so you may need to refresh after a bit if you only just started heatmon
.
If interested you can see individual graphs via Prometheus's "Graph" tab, e.g. try pasting room_temperature_celsius
into the query box and pressing "Execute" to see the latest room temperatures (once they are logged - this can take 15 minutes or so). Switch from the "Console" output panel to "Graph" to see historical data, though with gaps when heatmon
wasn't running. See The Prometheus Documentation for more.
Individual metric graphs are nice, but it's better to see more data at one time. For that, Grafana offers better visualisation and I've created a couple of dashboards that should have been installed by setup.sh
.
Visit your Grafana installation via (again, update newhostname to your RPi's hostname/IP address) and you'll probably be asked for a login, as Grafana tries to be a bit more secure. The default login is username and password are both "admin", but it will strongly suggest you update the password afterwards.
The Grafana welcome display can be a bit complex, but hopefully setup.sh
will have already provisioned a "Data Source" telling Grafana to use Promethus, and those two Dashboards which can be found via the four-small-squares icon which is on the left side of the screen.
- TRV Overview - Show higher level details of all Radbot/TRVs
- TRV Detail - Show just one TRV (choose which one via the top-left "TRV" drop-down)
Enjoy! Feel free to tweak the graphs, or even set alerts for Grafana to email you if, say, temperatures deviate too much, though that requires completing the commented out SMTP server settings in /etc/systemd/system/grafana-server.service.d/override.conf
.