InfluxdbConnection

scheme (string, enum)

Transport scheme to be used

This element must be one of the following enum values:

  • http

  • https

Default: "http"

Example: "https"

host (string, required)

The HTTP host of the InfluxDB server

Example: "connectware"

port (integer)

The port of the InfluxDB server

Default: 8086

Example: 8086

token (string)

An InfluxDB authentication token

Default: ""

Example: "an-influx-auth-token"

probeInterval (integer)

Time interval to check if connection is still there, in milliseconds

Default: 2000

Additional restrictions:

  • Minimum: 1000

timeout (integer)

Connection timeout, in milliseconds

Default: 10000

Example: 10000

Additional restrictions:

  • Minimum: 1000

transportOptions (object)

Additional connection options for InfluxDB

Default:

{}

org (string)

Organization for InfluxDB. An Organization is a workspace for a group of users, all objects stored in Influxdb belong to an organization

Default: "generic"

bucket (string)

InfluxDB bucket

Default: "measurement_data"

precision (string, enum)

Defines the precision to use for timestamps for InfluxDB

This element must be one of the following enum values:

  • ns

  • us

  • ms

  • s

Default: "ms"

maxRetryDelay (integer)

Maximum delay between write retries in milliseconds

Default: 180000

Example: 180000

minRetryDelay (integer)

Minimum delay between write retries in milliseconds

Default: 5000

Example: 5000

retryJitter (integer)

Random value of up to Retry Jitter is added when attempting the next retry

Default: 200

Example: 200

maxBufferLines (integer)

Maximum size of the buffer for items that could not be sent in a previous write

Default: 100000

Example: 100000

maxRetries (integer)

Maximum number of retries to attempt a write

Default: 3

Example: 3

exponentialBase (integer)

Exponential base of the Retry Jitter used when computing the next delay

Default: 5

Example: 5

batchSize (integer)

Maximum points/line to send in a single batch to InfluxDB

Default: 1000

Example: 1000

flushInterval (integer)

Maximum time in milliseconds to keep points in an unflushed batch

Default: 10000

Example: 10000

Additional restrictions:

  • Minimum: 1

connectionStrategy (object)

If a connection attempt fails, retries will be performed with increasing delay (waiting time) in between. The following parameters control how these delays behave.

Properties of the connectionStrategy object:

initialDelay (integer)

Delay (waiting time) of the first connection retry (in milliseconds). For subsequent retries, the delay will be increased according to the parameter incrementFactor which has a default value of 2.

Default: 1000

Additional restrictions:

  • Minimum: 1000

maxDelay (integer)

Maximum delay (waiting time) to wait until the next retry (in milliseconds). The delay (waiting time) for any subsequent connection retry will not be larger than this value. Must be strictly greater than initialDelay.

Default: 30000

incrementFactor (integer)

The factor used to increment initialDelay up to maxDelay. For example if initialDelay is set to 1000 and maxDelay to 5000 the values for the delay would be 1000, 2000, 4000, 5000.

Default: 2

Additional restrictions:

  • Minimum: 2

Last updated

Logo

© Copyright 2024, Cybus GmbH