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": { " ": "", "-": "" } }
Suggestions
Keep the individual point names quite simple - we suggest not using options like 'fullpath' where possible.