InfluxDB Write

InfluxDB Write

Certified

Write line protocol to InfluxDB

Sends raw InfluxDB line protocol to a bucket/org with configurable timestamp precision (default nanoseconds). Counts and reports written lines.

yaml
type: io.kestra.plugin.influxdb.Write

Write data to InfluxDB using line protocol.

yaml
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

InfluxDB connection

Connection settings (URL, token, optional options) reused across tasks

Definitions
token*Requiredstring

InfluxDB token

The authentication token for InfluxDB

url*Requiredstring

InfluxDB server URL

The URL of the InfluxDB server

connectTimeoutstring
DefaultPT10S

Connection timeout.

Connection establishment timeout (ISO-8601 duration, e.g. PT10S). Default is 10 seconds.

readTimeoutstring
DefaultPT10S

Read timeout.

Maximum time to wait for response bytes (including initial response) (ISO-8601 duration, e.g. PT10S). Default is 10 seconds.

Organization name

Organization scope for queries and writes

Line protocol payload

Multiline string in InfluxDB line protocol

Bucket name

Target bucket for write/query operations when required; ignored by Flux queries

Reference (ref) of the pluginDefaults to apply to this task.

DefaultNS
Possible Values
MSSUSNS

Timestamp precision

Precision applied to unix timestamps in the payload; defaults to nanoseconds

Number of records written to InfluxDB

Unitcount

The number of records written to InfluxDB