Skip to main content

influxdb

Latest Versionv1.0.0
Input Content Typeapplication/json

The influxdb destination sends data to an InfluxDB bucket. Data must be supplied as JSON, which will be transformed to line protocol after metadata is injected.

Parameters

ParameterTypeDescriptionRequired
urlstringThe URL for an InfluxDB instance.
tokenstringThe API token for authentication.
bucketstringThe bucket for the streaming data.
measurementstringThe measurement for the streaming data.

Example Secrets

INFLUXDB_TOKEN

SX89obl51o0pS7TausD4BwWrwxiuXEMOQFYBucJd8U2kXmFIj-nbgC3GzDTsGZZUgiDKoEpAa8MEFj9mXO2uog==

Example Usage

    destination:
type: influxdb
version: v1
parameters:
url: https://us-east-1-1.aws.cloud2.influxdata.com
token: $INFLUXDB_TOKEN
bucket: device-data
measurement: temp

Example Input

{
"temp": 32,
"sensor": {
"counter": 2,
}
}

Example Output

temp,device_id=12345678987654321,project_id=my-first-rpoject temp=32,sensor.counter=2 1556813561098000000