IoTool Grafana guidelines

Adminer

Log in

Log in to Adminer with account you’ve already set up.

1Login 1

Main page

menu 1

On the main page, there is a side menu with multiple options:

  • SQL command; where you can enter your SQL query

  • Import; where you can import data from your computer

  • Change password; where you can change your password

  • Data visualization; from where Grafana can be accessed

  • Data visualization; from where Grafana can be accessed

Under these options are listed all the tables of your database.

Tables

Data should already be uploaded to the cloud. Select _readings_hrf table and "Select data", sort it by date, and check if the readings are present there. If they are, it should look something like this:

readings

There is another similar table to this one, _readings; difference between these two tables is that in the first, data is presented in "human-readable" format and in the second in UNIX time format (in "computer-readable" format). To see available sensors, select _sensors and "Select data". Name of all the sensors are listed here; if the new sensor is used to send data to the cloud, its name should automatically appear here.

sensors 1

Grafana

Access Grafana from Adminer

To access Grafana from Adminer, select "Data visualization" on the side menu. Here are listed all the dahboards that contain graphs and panels with your data.

data visualization 1

Click on the desired dashboard and the page will redirect you to Grafana log in screen. Sign in with same credentials you used to sign in to Adminer.

grafana 1

Dashboard

Dashboard with default settings will appear; it shows logged user’s data.

dash1 1

To show greater (or lesser) number of readings, select desired number from the dropdown menu "Nr. of readings to show" on the top of the dashboard.

dash21

Next to this dropdown menu is another, named "Sensor", where you can choose which sensor’s data is shown. Multiple sensors can be selected and data from all will be shown.

dash3 1

On the top right side there is a dropdown menu, where you can choose which time range your dashboard will show.

dash4 1

On the far right, there is a refresh button and a dropdown menu to choose the refresh rate - interval on which dashboard will be refreshed.

dash5 1

Adding new panel

Left of the time range is "Add panel" button, which will add new panel that can be customized.

dash6 1

Click on panel’s name and select »Edit«, to edit panel’s settings. Data source should always be set to $iotoolDatasource. Below, "Edit SQL" button can be selected to edit a query. On the right side, the panel can be customized - you can select which type of graph will be shown and its style.

dash6 5 1
dash7 1

Dashboard’s settings

Left of the time range is a gear icon that is "Dashboard settings" button. It will open settings where you can set general settings, add new variables, see dashboard versions, …​

dash8 1

Adding new variables

To add new variable, select "Variables" in settings and then "New". It will open a menu, where variable name, type, datasource, …​ can be selected. After selecting desired options, preview of values will be shown at the bottom of the page. Select "Add" to add variable.

variable 1