Open coding-to-music opened 3 years ago
Using Prometheus and Grafana for IoT monitoring
https://cloud.google.com/community/tutorials/cloud-iot-prometheus-monitoring
This tutorial walks you through setting up a running stack for IoT monitoring using Prometheus and Grafana with integrations with IoT Core. For a more thorough discussion of the background and concepts, see Remote monitoring and alerting for IoT.
Objectives Deploy Prometheus and Grafana in Google Kubernetes Engine (GKE). Examine sample dashboards and Prometheus queries to understand how these tools relate to IoT monitoring use-cases. Deploy a Cloud Function that responds to alerts.
Monitoring data from IoT devices with Go and Grafana https://cloud.google.com/community/tutorials/monitoring-iot-data-grafana
Author(s): @leozz37 , Published: 2020-10-30
Leonardo Lima Contributed by the Google Cloud community. Not official Google documentation.
In this tutorial, you set up a monitoring environment for IoT devices with an Arduino-based board (ESP32), Grafana, and Google Cloud.
Objectives Send temperature data from an ESP32 built-in sensor to a temperature topic. Create a Pub/Sub queue to receive data. Host a Go service, Prometheus, and a Grafana container on Cloud Run. Collect temperature data, send it to Prometheus, and show it on Grafana. Create a Grafana dashboard. Costs This tutorial uses billable components of Google Cloud, including the following:
This tutorial should not generate any usage that would not be covered by the free tier, but you can use the pricing calculator to generate a cost estimate based on your projected production usage.
Prerequisites This tutorial assumes that you're using a Unix-like operating system.
This tutorial requires an ESP32 board.
This tutorial requires the Arduino IDE, so make sure that you have it installed and set up for ESP32 usage. If you need help, you can follow this tutorial.
The instructions in this tutorial use the Cloud SDK command-line interface to set up the environment, but you can use Cloud Console.