Example on how to write telemetry to an InfluxDB 1 using Azure IoT Edge.
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.
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")
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"
}
}
This library is available under MIT license.