Monitoring edge environments
Before starting to build our monitoring system, let’s describe the system across the different layers of edge computing. For this, let’s take a look at the following diagram:
Figure 11.1 – Monitoring with edge devices
This diagram is divided into different layers. Let’s describe the different components of this use case we want to implement:
- Tiny edge: Here you can find an edge device, in this case, a Raspberry Pi 4B. This Raspberry Pi works as an edge device that captures temperature and humidity data using a DHT11 sensor. Data is sent by running a small Python program called
send.py
. This file prepares the sensor to read data and sends the information to a queue in the Mosquitto broker. - Far edge: Here is installed a K3s cluster using a Raspberry Pi 4B. Inside this cluster is installed Mosquitto. Mosquitto is a broker that uses the MQTT protocol and is designed to be lightweight, using few...