Skip to content

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

License

Notifications You must be signed in to change notification settings

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages