With the Nerves device regularly sending data to our Phoenix application, all that’s left is to present all of this time-series data in a dashboard. Luckily, Grafana is both open source and very capable at surfacing data (and in particular time-series data) in configurable visuals like line graphs, pie charts, heatmaps, and gauges, to name a few.
Let’s start off by adding Grafana to the Docker compose stack and getting it to fetch data out of the Postgres instance.