Book Image

Building IoT Visualizations using Grafana

By : Rodrigo Juan Hernández
5 (1)
Book Image

Building IoT Visualizations using Grafana

5 (1)
By: Rodrigo Juan Hernández

Overview of this book

Grafana is a powerful open source software that helps you to visualize and analyze data gathered from various sources. It allows you to share valuable information through unclouded dashboards, run analytics, and send notifications. Building IoT Visualizations Using Grafana offers how-to procedures, useful resources, and advice that will help you to implement IoT solutions with confidence. You’ll begin by installing and configuring Grafana according to your needs. Next, you’ll acquire the skills needed to implement your own IoT system using communication brokers, databases, and metric management systems, as well as integrate everything with Grafana. You’ll learn to collect data from IoT devices and store it in databases, as well as discover how to connect databases to Grafana, make queries, and build insightful dashboards. Finally, the book will help you implement analytics for visualizing data, performing automation, and delivering notifications. By the end of this Grafana book, you’ll be able to build insightful dashboards, perform analytics, and deliver notifications that apply to IoT and IT systems.
Table of Contents (21 chapters)
1
Part 1: Meeting Grafana
4
Part 2: Collecting Data from IoT Devices
8
Part 3: Connecting Data Sources and Building Dashboards
12
Part 4: Performing Analytics and Notifications
15
Part 5: Integrating Grafana with Other Platforms

What is Prometheus?

Prometheus is an open source monitoring and alerting system. It was developed by SoundCloud in 2012, but at the time of writing, it is a standalone project. So, it is entirely maintained by the community, independently of any company.

The main features of Prometheus are as follows:

  • It has a multidimensional data model, with metrics pairs in key/value form.
  • It uses a flexible query language called PromQL.
  • It collects metrics using pulls over HTTP. You can also push metrics using a push gateway.
  • You can build dashboards using the tools provided by Prometheus. However, in this book, you will learn how to use Grafana for that purpose.

The metric definition in Prometheus is the same one that we have been using throughout this book. It consists of pairs of keys and values that are delivered in a time sequence. These metrics are stored in a time-series database.

Architecture

Prometheus’s ecosystem has many components:

    ...