InfluxDB

InfluxDB source connector

Read external data source data through InfluxDB.

Key featuresarrow-up-right

supports query SQL and can achieve projection effect.

name
type
required
default value

url

string

yes

-

sql

string

yes

-

schema

config

yes

-

database

string

yes

username

string

no

-

password

string

no

-

lower_bound

long

no

-

upper_bound

long

no

-

partition_num

int

no

-

split_column

string

no

-

epoch

string

no

n

connect_timeout_ms

long

no

15000

query_timeout_sec

int

no

3

common-options

config

no

-

the url to connect to influxDB e.g.

sql [string]arrow-up-right

The query sql used to search data

schema [config]arrow-up-right

fields [Config]arrow-up-right

The schema information of upstream data. e.g.

database [string]arrow-up-right

The influxDB database

username [string]arrow-up-right

the username of the influxDB when you select

password [string]arrow-up-right

the password of the influxDB when you select

split_column [string]arrow-up-right

the split_column of the influxDB when you select

Tips:

  • influxDB tags is not supported as a segmented primary key because the type of tags can only be a string

  • influxDB time is not supported as a segmented primary key because the time field cannot participate in mathematical calculation

  • Currently, split_column only supports integer data segmentation, and does not support float, string, date and other types.

upper_bound [long]arrow-up-right

upper bound of the split_columncolumn

lower_bound [long]arrow-up-right

lower bound of the split_column column

partition_num [int]arrow-up-right

the partition_num of the InfluxDB when you select

Tips: Ensure that upper_bound minus lower_bound is divided bypartition_num, otherwise the query results will overlap

epoch [string]arrow-up-right

returned time precision

  • Optional values: H, m, s, MS, u, n

  • default value: n

query_timeout_sec [int]arrow-up-right

the query_timeout of the InfluxDB when you select, in seconds

connect_timeout_ms [long]arrow-up-right

the timeout for connecting to InfluxDB, in milliseconds

common optionsarrow-up-right

Source plugin common parameters, please refer to Source Common Options for details

Example of multi parallelism and multi partition scanning

Example of not using partition scan

Last updated