Grafana Guide: Getting Started Dashboards Components
Grafana Guide: Getting Started Dashboards Components
Getting Started
Dashboards
Components
Getting Started
Introduction
Grafana is a cloud tool for the creation of visual boards. This tool allows the connection of various
database sources such as InfluxDB, ElasicSearch, PostgreSQL, etc. Thanks to a simple clicking
interface, it is possible to create well-arranged monitoring panels and test graphs, compare values, or
Login
Grafana is available on the Hexio IoT Platform at https://grafana.hexio.cloud/login.
Image: Grafana Login Page
Note: Grafana can also have a public organization to which you can be redirected without the need
to log in. By clicking the Log in icon which is displayed on the image below on the left hand side, you
will get back on the Log in page. You can find this icon on the lower left panel. After a successful
login, your profile icon is displayed on the same spot. (image below - right). If the left panel is not
Home Page
After a successful login, you will see the boards you have recently visited and starred ones. After
clicking the profile icon, you will b eredirected into the Profile section (profile icon > Preferences).
Image: Home Page
Profile
In the Profile section you can see your personal information. You can change your password here as
well. Attention: Grafana and Hexio IoT Cloud are not interconnected and so the password change
only takes place for the specific tool and will not be synced.
switch to a different organization, click the Profile icon and then hit the button "Switch" by the
currently selected organization labeled as "Current Org" (image above). Then you will see a switching
dialogue window as seen on the image below. After clicking the button "Switch to", you will be taken
Main Menu
The Main menu contains several buttons. Please do not forget that all buttoons are available for all
Icon “SQUARES” enables browsing and management of boards, as well as creating a playlist or
a snapshot.
Icon “BELL” gives you overview of all alerts and let´s you set up notification channels.
Icon “SHIELD” is available only for the Admins of the whole Grafana.
Image: Main Menu Options
Public Board
If you are not logged in, you will see freely available boards. After logging in, click the icon displayed
on the second image in the section Start. Of the left panel is not displayed, click the logo in the upper
First Dashboard
You can create a new dashboard by clicking the PLUS icon > Dashboard on the Main Menu. You will
see the option to add graphical components (Query, Visualization and Convert to Row - more
description below). By clicking the Diskette icon next to the GEAR icon, you will save the dashboard.
Dahsboard Settings
After clicking the GEAR icon of the project above on the pane, you will get to the section of setting up
the Dashboard. Here you can change the dashboard name, add a description etc. It is also possible to
display the dashboard in the JSON format for the option to back it up (section View JSON).
Image: Dashboard Settings
Time scope of graphs can be changes in the upper right hand corner by clicking the CLOCK icon. By
using the MAGNIFYING GLASS icon, you can zoom in the graphs. YOu can also refresh the graphs by
clicking refresh or you can choose automatic refresh with a specific interval.
New Component
You can add a new component to a new dashboard by clicking the Add Query button (recommended)
or Choose Visualization. Additional components are added by clicking the Bar Chart+ icon on the
upper pane.
Each component can be moved by dragging it by the upper pane with the name of the Query or you
can change the size of the component by dragging its lower right hand corner. This behavior is almost
If you would like to group components into a foldable section, add a new component and choose
Convert to Row. All components below this line will be automatically added. The folding and unfolding
Component Edits
You can edit a component by clicking its name in the header and selecting Edit. In the Component
Menu, you can delete it (Remove), duplicate it (More > Duplicateú, or display a JSON configuration
Additional Settings - these settings are available only for some components (graph - Alert)
Queries
In this section you can select a database and put together a data query. The quesry can be put
together through a click-tool with smart help. More queries can be done with the button Add Query; to
display the resulting query, you can click the Query Inspector.
There is a global setting of the minimal interval at the and of all queries - $__interval parameter,
<selectors(agregation-functions)>
Legend
value in the item field – a list of found values found in the given measuring
selector – after setting up grouping ( GROUP BY ) the selector is used to receive aggregated
time-interval – grouping interval for data aggregation ( $__interval is a variable which can be
value in the item fill – indicates how missing data will be interpreted
your label – own name of the measuring which must be present in case of using two Y axes
Examples:
ZReceiving all data points of voltage from the topic example.1.voltage
SELECT field(voltage_Volt)
GROUP BY +
Receiving a mean value of pressure from 5-minute intervals from the topic example.2.pressure
ALIAS BY Pressure
Receiving a maximum temperature of the whole day from the topic example.3.temperature
Receiving temperature from the topic example.4.temperature and converting to Fahrenheit degrees
GROUP BY +
Receiving a first derivative of vibrations from a second interval in the topic example.5.vibration
FROM default example.5.vibration WHERE +
ALIAS BY dVibration / 1s dt
You can find out more about database queries in the official documentation for InfluxDB.
Visualization
After creating a query, it is possible to select a specific visual component. There is a wide array of
General
In the General section, you can change the name and description of the component. It is also possible
Graph
General
Draw Modes
Here you can set up the mode in which the graph will be drawn.
Bars
Lines
Points
Mode Options
You can select the thickness of the line, fill etc. The Staircase option creates stair-like transitions
Axes
Graphs enable additional edits, such as axes set up - axes range, unit, label, etc. Settings are
To assign a metric to a given axis, click the color line next to the measuring label under the graph.
The line is on the following image highlighted by a red rectangle. Here you can also change the color
Legend
The Legend is used to set up labels of individual measurings.
Alert
Grafana also provides basic alerting system.
Image: Alert Settings
After setting up the alerts, you can set up channels and messages in the section Notifications.
However, channels have to be first set up in the Main Menu - Alerting > Notification Channels.
slack
webhook
Gauge
Basic
Image: Gauge Options Settings
Display
Show
Calculation - display of calculated aggregated values from the returned database values
Labels
Markers
Field
This settings allows to secundarly name the gauge (Title), choose the unit (Unit), set up the minimal
Tresholds
Treshold values create color sections for a more easily readable value recognition. Value Base is
Value mapping
Value mapping is a very useful tool for definind own text values. For example, the value 0 can mean
CLOSED and 1 OPEN. On the image below you can see default mapping - not found data (null) are