This sample Azure IoT Edge solution demonstrates how to store timeseries data from IoT sensors in RedisTimeSeries. The Simulated Temperature Sensor edge module is used to generate temperature, pressure and humidity readings. These readings are then routed to our custom C# edge module which stores them in RedisTimeSeries.
The custom edge module also provides an Azure IoT Hub Direct Method named GetTimeSeriesInfo
. This method can be used to retrieve statistics about the stored data in RedisTimeSeries.
- Azure IoT Hub with an edge device provisioned
- Docker Community Edition
- .NET Core 3.1
- Python 3.8
- Azure IoT EdgeHub 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.