Skip to content

syedhassaanahmed/azure-iot-edge-redis-timeseries

Repository files navigation

azure-iot-edge-redis-timeseries

IoT Edge Build

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.

Features

  • 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.

Architecture

Prerequisites

Configuration

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.

Grafana Dashboards

Simulated timeseries dashboard was created using the Redis Data Source for Grafana.

Redis usage dashboard was created using the Prometheus Redis Metrics Exporter.

Team

About

This sample Azure IoT Edge module demonstrates how to store sensor data in RedisTimeSeries and visualize it in Grafana.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •