Reader small image

You're reading from  Building IoT Visualizations using Grafana

Product typeBook
Published inJul 2022
PublisherPackt
ISBN-139781803236124
Edition1st Edition
Right arrow
Author (1)
Rodrigo Juan Hernández
Rodrigo Juan Hernández
author image
Rodrigo Juan Hernández

Rodrigo Juan Hernández is an electronic engineer passionate about IoT even before it existed. He has been working on tech for more than 18 years until now. For several years he has been focusing on the IoT ecosystem. He is currently giving consultation about IoT systems to clients around the world. He also produces content online about IoT and related subjects and the content is available on his blog, Youtube channel, and social networks - mainly LinkedIn. He also writes for companies that need good quality content about their products and services. His main objective nowadays is helping others to understand and implement IoT solutions.
Read more about Rodrigo Juan Hernández

Right arrow

How to use live data

Using live data is a must in any IoT project. Fortunately, Grafana allows using live data since version 8.0. It uses WebSocket connections to exchange data in a quasi-real-time way.

This feature is enabled by default, with a maximum number of simultaneous connections of 100. WebSocket is a resource-intense protocol so it has to be used carefully. If you want to extend this feature to more clients, take into account the availability of resources (CPU and memory).

As we have seen in Chapter 3, Connecting IoT Devices, WebSocket initiates with an HTTP request, followed by an upgrade request. Then, the HTTP session remains open and data is exchanged between client and server using the WebSocket connection.

Features

Currently, Grafana supports the following features:

  • It processes data as soon as it arrives. Instead of polling data from data sources at a specified polling period, it can manage asynchronous data in real-time.
  • Whenever a dashboard...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Building IoT Visualizations using Grafana
Published in: Jul 2022Publisher: PacktISBN-13: 9781803236124

Author (1)

author image
Rodrigo Juan Hernández

Rodrigo Juan Hernández is an electronic engineer passionate about IoT even before it existed. He has been working on tech for more than 18 years until now. For several years he has been focusing on the IoT ecosystem. He is currently giving consultation about IoT systems to clients around the world. He also produces content online about IoT and related subjects and the content is available on his blog, Youtube channel, and social networks - mainly LinkedIn. He also writes for companies that need good quality content about their products and services. His main objective nowadays is helping others to understand and implement IoT solutions.
Read more about Rodrigo Juan Hernández