iot-edge-foundation / iot-edge-influx-writer

Example on how to write telemetry to an InfluxDB 1 using Azure IoT Edge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iot-edge-influx-writer

Example on how to write telemetry to an InfluxDB 1 using Azure IoT Edge.

Introduction

This Azure IoT Edge module demonstrates how to write routed telemetry to a local InfluxDB database.

Keep in mind you have to create the database yourself.

This module is written with InfluxDB 1.8 in mind. InfluxDB 2.0 has some fundamental changes so it needs fundamental rework.

How to use

This module is a demonstration of how to ingest the Ambiant Temperature of the the Microsoft Simulated Temperature module

Connect to it with an IoT Edge route:

FROM /messages/modules/sim/outputs/temperatureOutput INTO BrokeredEndpoint("/modules/writer/inputs/input1")

Desired properties

An example of the desired properties is:

{
    "influxDbUrl": "http://192.168.1.91:8086",
    "influxDatabase": "iotedger",
    "tableName": "temperature",
    "tags": {
    "1": {
        "key": "area",
        "value": "ambiant"
    },
    "2": {
        "key": "prodline",
        "value": "1"
    }
}

License

This library is available under MIT license.

About

Example on how to write telemetry to an InfluxDB 1 using Azure IoT Edge

License:MIT License


Languages

Language:C# 100.0%