Seems to be a toml parse bug around triple pounds
This commit is contained in:
@@ -12,20 +12,20 @@ from a NATS cluster in parallel.
|
||||
```toml
|
||||
# Read metrics from NATS subject(s)
|
||||
[[inputs.nats_consumer]]
|
||||
### urls of NATS servers
|
||||
## urls of NATS servers
|
||||
servers = ["nats://localhost:4222"]
|
||||
### Use Transport Layer Security
|
||||
## Use Transport Layer Security
|
||||
secure = false
|
||||
### subject(s) to consume
|
||||
## subject(s) to consume
|
||||
subjects = ["telegraf"]
|
||||
### name a queue group
|
||||
## name a queue group
|
||||
queue_group = "telegraf_consumers"
|
||||
### Maximum number of metrics to buffer between collection intervals
|
||||
## Maximum number of metrics to buffer between collection intervals
|
||||
metric_buffer = 100000
|
||||
|
||||
### Data format to consume. This can be "json", "influx" or "graphite"
|
||||
### Each data format has it's own unique set of configuration options, read
|
||||
### more about them here:
|
||||
### https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
|
||||
## Data format to consume. This can be "json", "influx" or "graphite"
|
||||
## Each data format has it's own unique set of configuration options, read
|
||||
## more about them here:
|
||||
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
|
||||
data_format = "influx"
|
||||
```
|
||||
|
||||
@@ -46,19 +46,19 @@ type natsConsumer struct {
|
||||
}
|
||||
|
||||
var sampleConfig = `
|
||||
### urls of NATS servers
|
||||
## urls of NATS servers
|
||||
servers = ["nats://localhost:4222"]
|
||||
### Use Transport Layer Security
|
||||
## Use Transport Layer Security
|
||||
secure = false
|
||||
### subject(s) to consume
|
||||
## subject(s) to consume
|
||||
subjects = ["telegraf"]
|
||||
### name a queue group
|
||||
## name a queue group
|
||||
queue_group = "telegraf_consumers"
|
||||
|
||||
### Data format to consume. This can be "json", "influx" or "graphite"
|
||||
### Each data format has it's own unique set of configuration options, read
|
||||
### more about them here:
|
||||
### https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
|
||||
## Data format to consume. This can be "json", "influx" or "graphite"
|
||||
## Each data format has it's own unique set of configuration options, read
|
||||
## more about them here:
|
||||
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
|
||||
data_format = "influx"
|
||||
`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user