Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building IoT Visualizations using Grafana

You're reading from   Building IoT Visualizations using Grafana Power up your IoT projects and monitor with Prometheus, LibreNMS, and Elasticsearch

Arrow left icon
Product type Paperback
Published in Jul 2022
Publisher Packt
ISBN-13 9781803236124
Length 360 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Rodrigo Juan Hernandez Rodrigo Juan Hernandez
Author Profile Icon Rodrigo Juan Hernandez
Rodrigo Juan Hernandez
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Part 1: Meeting Grafana
2. Chapter 1: Getting Started with Grafana FREE CHAPTER 3. Chapter 2: Exploring Grafana 4. Part 2: Collecting Data from IoT Devices
5. Chapter 3: Connecting IoT Devices 6. Chapter 4: Data Sources for Grafana 7. Chapter 5: Using Time Series Databases 8. Part 3: Connecting Data Sources and Building Dashboards
9. Chapter 6: Getting Data and Building Dashboards 10. Chapter 7: Managing Plugins 11. Chapter 8: Organizing and Managing Dashboards 12. Part 4: Performing Analytics and Notifications
13. Chapter 9: Performing Analytics in Grafana 14. Chapter 10: Alerting and Notifications in Grafana 15. Part 5: Integrating Grafana with Other Platforms
16. Chapter 11: Using Grafana with Prometheus 17. Chapter 12: Using Grafana with OpenSearch 18. Chapter 13: Showing Data from LibreNMS in Grafana 19. Chapter 14: Integrations for Grafana Cloud 20. Other Books You May Enjoy

Running your MQTT broker

In this section, you will learn how to install Mosquitto in Debian systems such as Ubuntu or Raspberry Pi.

As usual, you should update the packages, as follows:

$ sudo apt-get update && sudo apt-get upgrade -y

After that, you can install the Mosquitto broker and client from the packages:

$ sudo apt-get install mosquitto mosquitto-clients

Once you have installed Mosquitto, you can configure it according to your needs.

The main configuration file of Mosquitto is in the /etc/mosquitto/ and /etc/mosquitto/conf.d directories.

Looking into mosquitto.conf, you will see something like this:

# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime