As IoT devices become more prominent in our society and more technology enthusiasts look to IoT devices for solving everyday problems, an easy way to store IoT data and visualising the data has become a requirement.
We have already showed in our article, Cloud IoT: Monitoring Your Living Spaces, how, with a few clicks, we can use Eulerio to store our IoT data safely and securely within the cloud. This article will explore how we can use Grafana, a modern visualization tool, too easily visualise our IoT data allowing us to monitor our environment over time.
Let’s get started.
In order to visualise our IoT data, we will use a tool called Grafana. For those not familiar with Grafana, I would first recommend you look at the documentation to understand the vast capabilities of the software. Grafana allows a user to take data from a given datasource and visualise the data in realtime.
In order to run Grafana locally, we will utilise the docker image published in docker hub. Again, if you are unfamiliar with docker, please see the docker documentation detailing how you can install and get started with docker.
To pull down the docker image and run it locally on port 3000, issue the following command
docker run -d -p 3000:3000 --name grafana grafana/grafana-oss
When the command is complete, issue the following additional command to see the running containers.
You should see output similar to the one below, which indicates that the grafana-oss container is running and can be accessed using the port 3000
45282c73913 grafana/grafana-oss "/run.sh" 2 days ago Up 20 hours 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp grafana
To verify everything is up and running, open a browser and enter the url “http://localhost:3000/" to access our Grafana UI.
The default username and password for your local Grafana instance will be “admin”, so lets login.