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…
| Name | Notes | Purpose |
|---|---|---|
| hostname | Required | The full path to your API endpoint, including /api/v2/write. |
| bucket | Required | The name of the bucket to publish to |
| headers | Any headers - including your Auth header - to send | |
| query | A 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…
| Location | Value |
|---|---|
| Bucket | measurements |
| Table | values |
| Tag | Main Pump |
| Value | Temperature |
Suggestions
Keep the individual point names quite simple - we suggest not using options like 'fullpath'.