This is an old revision of the document!


InfluxDB

This type of distribution sends incoming data to an InfluxDB server to be recorded.

Type Name

The type name to use in your configuration is influx.

Configuration

The following configuration options are accepted…

NameNotesPurpose
hostnameRequiredThe full path to your API endpoint, including /api/v2/write.
bucketRequiredThe name of the bucket to publish to
headersAny headers - including your Auth header - to send
queryA map containing any additional parameters to send

NOTE - The example below removes spaces from names before they are added to InfluxDB. This is not required.

{
		"type": "influx",		
		"config": {
			"hostname": "https://<influx address>/api/v2/write",
			"headers": {
				"Authorization": "Token <token>"
			},
                        "bucket": "measurements",
         		"table": "values"
		},
		"replace": {
			" ": "",
			"-": ""
		}
	}

Notes

When being written, the tag is taken from the asset name and the value from the property name. For example, a point with the name…

'Main Pump.Temperature' would be recorded (with the configuration show above) as…

LocationValue
Bucketmeasurements
Tablevalues
TagMain Pump
ValueTemperature

Suggestions

Keep the individual point names quite simple - we suggest not using options like 'fullpath'.