This sample Azure IoT Edge solution demonstrates how to store timeseries data from IoT sensors to RedisTimeSeries. The Simulated Temperature Sensor Edge module is used to generate temperature, pressure and humidity measurements. These measurements are then routed to our custom C# Edge module which stores them in RedisTimeSeries.
- Ability to connect to Redis with Unix Sockets in addition to TCP.
- Scrapes Redis usage metrics in Prometheus format.
- Exposes an Azure IoT Hub Direct Method named
GetTimeSeriesInfo
. This method can be used to retrieve statistics about the stored data in RedisTimeSeries. - Provides Grafana dashboards for visualizing timeseries and above Prometheus data sources, see below.
- Support for Dev Container through the Docker-in-Docker Feature.
- Azure IoT Hub with a provisioned Edge device
- Docker Community Edition
- .NET 6
- Python 3.8
- Azure IoT Edge Dev Tool
- Visual Studio Code with the following extensions
The .env
file can be modified for container version, container host names and to use an Azure Container Registry instead of a local docker registry.
Simulated timeseries dashboard was created using the Redis Data Source for Grafana.
Redis usage dashboard was created using the Prometheus Redis Metrics Exporter.