InfluxDB CBOR
InfluxDB records data points using line
protocol.
However, the InfluxDB data destination on
Golioth accepts application/json
data and handles converting it to line
protocol before writing it to the specified InfluxDB bucket. In this example,
device data is sent as CBOR, then transformed into JSON, before being delivered
to the InfluxDB data destination.
Reminder
Make sure to create a secret named INFLUXDB_TOKEN
that includes an InfluxDB API
token.
filter:
path: "*"
content_type: application/cbor
steps:
- name: step-0
transformer:
type: cbor-to-json
version: v1
destination:
type: influxdb
version: v1
parameters:
url: https://us-east-1-1.aws.cloud2.influxdata.com
token: $INFLUXDB_TOKEN
bucket: device_data
measurement: temp