Write
Write data to InfluxDB using line protocol.
Write data to InfluxDB using InfluxDB line protocol format.
type: "io.kestra.plugin.influxdb.Write"
Examples
Write data to InfluxDB using line protocol.
id: influxdb_write
namespace: company.team
tasks:
- id: write
type: io.kestra.plugin.influxdb.Write
connection:
url: "{{ secret('INFLUXDB_URL') }}"
token: "{{ secret('INFLUXDB_TOKEN') }}"
org: "my_org"
bucket: "my-bucket"
source: |
measurement,tag=value field=1.0
measurement,tag=value2 field=2.0
Properties
connection *RequiredNon-dynamicInfluxDBConnection
InfluxDB connection properties.
org *Requiredstring
InfluxDB organization.
The organization to use for operations.
source *Requiredstring
Data in InfluxDB line protocol format
Multiline string in InfluxDB wire format (line protocol)
bucket string
InfluxDB bucket.
The bucket to use for operations.
precision string
NS
MS
S
US
NS
Write precision
The precision for the unix timestamps within the body line-protocol
Outputs
recordCount integer
Number of records written to InfluxDB
Definitions
io.kestra.plugin.influxdb.InfluxDBConnection
token *Requiredstring
InfluxDB token
The authentication token for InfluxDB
url *Requiredstring
InfluxDB server URL
The URL of the InfluxDB server