
InfluxDB Write
CertifiedWrite line protocol to InfluxDB
InfluxDB Write
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.
type: io.kestra.plugin.influxdb.WriteExamples
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-dynamic
InfluxDB connection
Connection settings (URL, token, optional options) reused across tasks
io.kestra.plugin.influxdb.InfluxDBConnection
InfluxDB token
The authentication token for InfluxDB
InfluxDB server URL
The URL of the InfluxDB server
PT10SConnection timeout.
Connection establishment timeout (ISO-8601 duration, e.g. PT10S). Default is 10 seconds.
PT10SRead timeout.
Maximum time to wait for response bytes (including initial response) (ISO-8601 duration, e.g. PT10S). Default is 10 seconds.
org *Requiredstring
Organization name
Organization scope for queries and writes
source *Requiredstring
Line protocol payload
Multiline string in InfluxDB line protocol
bucket string
Bucket name
Target bucket for write/query operations when required; ignored by Flux queries
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
precision string
NSMSSUSNSTimestamp precision
Precision applied to unix timestamps in the payload; defaults to nanoseconds
Outputs
recordCount integer
Number of records written to InfluxDB
Metrics
records counter
countThe number of records written to InfluxDB