Skip to main content

InfluxDB instance

InfluxDB can be run locally or in the cloud.

Basic config

Basic configuration includes the server connection details:

Data format

The InfluxDB data exporter accepts only dictionaries as messages following a specific format:
Every message contains at least some data in a data field. The following messages are valid:
InfluxDB supports data elements for structuring your data. The influxdb data exporter can create these elements if the messages received contain a metadata dictionary:
The following message shows the configuration of all possible elements data and metadata:
If not all elements are configured, default values are assumed.
  • The default measurement name is default and can be configured in the yaml file.
  • The default time timestamp is the current time of execution.
  • The default tags are none.
The data part of the message is taken for the fields elements. If the data is a scalar value or a list type it will be written to the database with the field name _value.

Advanced config

The influxdb data exporter writes data to the InfluxDB server in batches, if either the batch size or the timeout are reached. Both values can be changed if necessary in the config file: