Update influxSink.md

This commit is contained in:
Thomas Gruber 2023-10-10 11:56:02 +02:00 committed by GitHub
parent b488ff76b1
commit 262f0c6a86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,6 @@ The `influxdb` sink uses the official [InfluxDB golang client](https://pkg.go.de
{ {
"<name>": { "<name>": {
"type": "influxdb", "type": "influxdb",
"meta_as_tags" : true,
"database" : "mymetrics", "database" : "mymetrics",
"host": "dbhost.example.com", "host": "dbhost.example.com",
"port": "4222", "port": "4222",
@ -18,13 +17,13 @@ The `influxdb` sink uses the official [InfluxDB golang client](https://pkg.go.de
"organization": "myorg", "organization": "myorg",
"ssl": true, "ssl": true,
"flush_delay" : "1s", "flush_delay" : "1s",
"batch_size" : 100 "batch_size" : 100,
"meta_as_tags" : [],
} }
} }
``` ```
- `type`: makes the sink an `influxdb` sink - `type`: makes the sink an `influxdb` sink
- `meta_as_tags`: print all meta information as tags in the output (optional)
- `database`: All metrics are written to this bucket - `database`: All metrics are written to this bucket
- `host`: Hostname of the InfluxDB database server - `host`: Hostname of the InfluxDB database server
- `port`: Portnumber (as string) of the InfluxDB database server - `port`: Portnumber (as string) of the InfluxDB database server
@ -34,4 +33,5 @@ The `influxdb` sink uses the official [InfluxDB golang client](https://pkg.go.de
- `ssl`: Use SSL connection - `ssl`: Use SSL connection
- `flush_delay`: Group metrics coming in to a single batch - `flush_delay`: Group metrics coming in to a single batch
- `batch_size`: Maximal batch size - `batch_size`: Maximal batch size
- `meta_as_tags`: move meta information keys to tags (optional)