InfluxDB
InfluxDB sink connector
Descriptionâ
Write data to InfluxDB.
Key featuresâ
Optionsâ
name | type | required | default value |
---|---|---|---|
url | string | yes | - |
database | string | yes | |
measurement | string | yes | |
username | string | no | - |
password | string | no | - |
key_time | string | no | processing time |
key_tags | array | no | exclude field & key_time |
batch_size | int | no | 1024 |
max_retries | int | no | - |
retry_backoff_multiplier_ms | int | no | - |
connect_timeout_ms | long | no | 15000 |
common-options | config | no | - |
urlâ
the url to connect to influxDB e.g.
http://influxdb-host:8086
database [string]â
The name of influxDB
database
measurement [string]â
The name of influxDB
measurement
username [string]â
influxDB
user username
password [string]â
influxDB
user password
key_time [string]â
Specify field-name of the influxDB
measurement timestamp in SeaTunnelRow. If not specified, use processing-time as timestamp
key_tags [array]â
Specify field-name of the influxDB
measurement tags in SeaTunnelRow.
If not specified, include all fields with influxDB
measurement field
batch_size [int]â
For batch writing, when the number of buffers reaches the number of batch_size
or the time reaches checkpoint.interval
, the data will be flushed into the influxDB
max_retries [int]â
The number of retries to flush failed
retry_backoff_multiplier_ms [int]â
Using as a multiplier for generating the next delay for backoff
max_retry_backoff_ms [int]â
The amount of time to wait before attempting to retry a request to influxDB
connect_timeout_ms [long]â
the timeout for connecting to InfluxDB, in milliseconds
common optionsâ
Sink plugin common parameters, please refer to Sink Common Options for details
Examplesâ
sink {
InfluxDB {
url = "http://influxdb-host:8086"
database = "test"
measurement = "sink"
key_time = "time"
key_tags = ["label"]
batch_size = 1
}
}
Multiple tableâ
example1â
env {
parallelism = 1
job.mode = "STREAMING"
checkpoint.interval = 5000
}
source {
Mysql-CDC {
base-url = "jdbc:mysql://127.0.0.1:3306/seatunnel"
username = "root"
password = "******"
table-names = ["seatunnel.role","seatunnel.user","galileo.Bucket"]
}
}
transform {
}
sink {
InfluxDB {
url = "http://influxdb-host:8086"
database = "test"
measurement = "${table_name}_test"
}
}
Changelogâ
next versionâ
- Add InfluxDB Sink Connector