User Tools

Site Tools


IoT Dashboards with Grafana

Zibawa is compatible with both Kibana and Grafana. THe default installation of Zibawa is Grafana owing to the greater possibilities of configuring user access control.

PreRequisites - Before You Start

  • Make sure that everything is configured by going to
  • This should show you that all the elements of your configuration are working properly.
  • Send some data.

Create test message data

The easiest way to send data is by using the test message page, at

Make sure you understand the message formats and check on the screen that your messages are being correctly interpreted and loaded into the database.

The easiest way to send a test message is to use:

Topic = <accountnumber>.1.test.1

Message : 3

By sending a simple integer without a timestamp, Zibawa will interpret as “now” with a value of 3

Send several messages with different values. Make sure that all of the indicators below are not giving any errors.

Access to the Dashboard

Press the link to “dashboard” in the top menu of Zibawa.

Login to Grafana

Press “Home” at the top left side of the screen Press “Create New” at the bottom Choose the “Graph” button (a demo graph should appear) Click on the “Panel Title” In the centre / top of the graph (this is not very intuitive) Press edit on the new menu which appears Choose a new data source by clicking on the “default” button to the right of the “panel data source” button - choose “dab<your account number> Click on the arrow next to “A” to see the detail of the query

Grafana Query

Underneath the graph in the metrics tab,

  • Make sure that the “data source” shows dab+<your username> eg. dabhenrysmith
  • Edit the query (by clicking upon each element you can get drop down menus)
  • The query should read:

From default mqttData where device_id=1 (the number depends upon the device id . If we used as a topic <account no>.1.test.1 then the device ID is 1

Set time interval= today in top right corner.

Select field value count()

Group be time ($interval) fill(none)

Group by time interval >1000s.

When there are a very small number of data points (often the case if you are setting up) then you often need to play with the group time interval to see the data. If you can't see any dataTry >100s or >1000s

The count function simply counts the number of data items. So change count to mean() or sum() which will take the average or sum of data values in the time interval specified.

Trouble Shooting

If you can't see any data on your dashboard, then there are a number of things that you can check.

No data

Try to send data manually using the same topic as your device. Sometimes a few data points are insufficient to make your graph show up.

Bad timestamp

If your device is sending the wrong timestamp, or if it is getting mis-interpreted due to time zones then your data could be out of range.

Message Format

Most Zibawa tutorials are based on a message sending {“value”:5}. If you are sending {“temperature”:45} then make sure your query on Grafana is looking for “temperature” rather than value.

Bad Query in Grafana

The Grafana interface is not particularly intuitive. The large range in options can make it easy to introduce mistakes. Try setting up from scratch, following the steps mentioned in the tutorial.

Still having difficulties? Then contact us and we will try to help

user/viewing_the_dashboard.txt · Last modified: 2017/07/25 11:07 by matt