influxdbINPUTBUFFERPROCESSOROUTPUT
InfluxDB
The InfluxDB output writes time-series data to InfluxDB 2.x using the Line Protocol. It maps columns to tags and fields, writes each incoming batch to InfluxDB as a single Line Protocol request, and retries transient failures (transport errors, 429, 5xx) with capped exponential backoff — deterministic 4xx rejections fail immediately with the buffered lines retained.
Configuration
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| type | string | yes | — | Fixed value "influxdb" |
| url | string | yes | — | InfluxDB server URL (e.g. http://localhost:8086). |
| org | string | yes | — | Organization name. |
| bucket | string | yes | — | Destination bucket. |
| token | string | yes | — | Authentication token. |
| measurement | string | yes | — | Measurement name. |
| tags | array<object> | no | — | Tag mappings (indexed fields). |
| fields | array<object> | yes | — | Field mappings (value fields). |
| timestamp_field | string | no | — | Source column for the point timestamp (nanoseconds). Defaults to current time. |
| batch_size | integer | no | — | Accepted for compatibility but currently inert: every incoming batch is flushed synchronously as one request and batches are never split. The only validated value rule is that 0 is rejected. |
| flush_interval | integer | no | — | Currently unused — defined in the schema but never read by the implementation. |
| retry_count | integer | no | 3 | Number of HTTP attempts per flush (total tries, not retries). |
| timeout_ms | integer | no | 5000 | HTTP request timeout in milliseconds. |
tags[]
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| field | string | yes | — | Source column name in the message batch. |
| tag_name | string | yes | — | Tag name written to InfluxDB. |
fields[]
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| field | string | yes | — | Source column name in the message batch. |
| field_name | string | yes | — | Field name written to InfluxDB. |
| field_type | string | no | string | One of float, integer, boolean, string. |
Examples
Basic InfluxDB Output
output:
type: "influxdb"
url: "http://localhost:8086"
org: "my-org"
bucket: "sensor-data"
token: "${INFLUXDB_TOKEN}"
measurement: "temperature"
fields:
- field: "temp"
field_name: "value"
field_type: "float"
With Tags and Timestamp
output:
type: "influxdb"
url: "http://localhost:8086"
org: "production"
bucket: "metrics"
token: "${INFLUXDB_TOKEN}"
measurement: "system_metrics"
tags:
- field: "hostname"
tag_name: "host"
- field: "region"
tag_name: "region"
fields:
- field: "cpu_percent"
field_name: "cpu_usage"
field_type: "float"
- field: "memory_mb"
field_name: "memory_usage"
field_type: "integer"
- field: "status_message"
field_name: "status"
field_type: "string"
timestamp_field: "timestamp"
With Retry
output:
type: "influxdb"
url: "https://influxdb.example.com:8086"
org: "enterprise"
bucket: "telemetry"
token: "${INFLUXDB_TOKEN}"
measurement: "iot_readings"
tags:
- field: "device_type"
tag_name: "device_type"
fields:
- field: "temp"
field_name: "temperature"
field_type: "float"
- field: "battery"
field_name: "battery_level"
field_type: "integer"
timestamp_field: "event_time"
retry_count: 5
timeout_ms: 10000
Notes
- Measurement, tag, and field identifiers are escaped per Line Protocol rules automatically.
- When
field_typeis omitted it is treated as a string field. - Retries use the shared capped exponential backoff starting at 100 ms (delays cap at 5 s; any configured
retry_countis overflow-safe). - Transient failures — transport errors,
429, and5xxresponses — are retried; other4xxresponses (bad token, wrong bucket, …) fail on the first attempt with the buffered lines retained, so deterministic rejections don't burn the retry budget.