Edit on GitHub

InfluxDB

The InfluxDB plugin sends data to the InfluxDB database. This page lists the environment variables you must define, and also describes the required format for incoming data.

Environment variables

If you use InfluxDB Cloud, see the Write data documentation for how to find the value for these variables.

Environment Variable NameSecret Store KeyDescription
INFLUXDB_URLinfluxdb-urlURL for the organization
INFLUXDB_TOKENinfluxdb-tokenAuthentication token suitable for writing data
INFLUXDB_ORGinfluxdb-orgID for the organization
INFLUXDB_BUCKETinfluxdb-bucketBucket in the database in which to store the data

Data Format

Data from the data source must be a JSON object in the form below.

{ "measurement": "<measurement-name>", "tags":"<tkey>=<tvalue>,...", "values": "<fkey>=<fvalue>,..." }

For example,

{ "measurement": "cpu_temp", "tags":"device=bc8b1b0", "values": "temp=32.0" }

A tags attribute is optional. The values attribute includes the actual data values. See InfluxDB line protocol for more details.

ElementRequired?Notes
measurement-nameYName of measurement
tkeyNKey for tag
tvalueNValue for tag
fkeyYKey for data field
fvalueYValue for data field