InfluxDB usage
Messages can be routed to InfluxDB through the data-decoded-topic
of the Service Bus.
How the platform interacts with InfluxDB
Telemetry
Telemetries are transferred to InfluxDB using the Azure Function you can find in core/apps/azure-functions/influxdb
.
Each message is routed to a bucket name with the Tenant ID it belongs to. The bucket is created if it does not exist already. Additional tags can be set on the InfluxDB data points if needed (such as device name, device serial number).
The body
of the message (the decoded device telemetry) is flattened as JSON using .
to join the attributes. Each resulting JS string
, boolean
, number
field is mapped to InfluxDB string
, boolean
, float
respectively.