2016-09-01 12:11:42 +00:00
|
|
|
# NATS Output Plugin
|
|
|
|
|
|
|
|
This plugin writes to a (list of) specified NATS instance(s).
|
2017-04-27 21:59:18 +00:00
|
|
|
|
2019-08-02 23:56:49 +00:00
|
|
|
```toml
|
2016-09-01 12:11:42 +00:00
|
|
|
[[outputs.nats]]
|
|
|
|
## URLs of NATS servers
|
|
|
|
servers = ["nats://localhost:4222"]
|
|
|
|
## Optional credentials
|
|
|
|
# username = ""
|
|
|
|
# password = ""
|
2020-02-20 22:30:04 +00:00
|
|
|
|
|
|
|
## Optional NATS 2.0 and NATS NGS compatible user credentials
|
|
|
|
# credentials = "/etc/telegraf/nats.creds"
|
|
|
|
|
2016-09-01 12:11:42 +00:00
|
|
|
## NATS subject for producer messages
|
|
|
|
subject = "telegraf"
|
2019-08-02 23:56:49 +00:00
|
|
|
|
|
|
|
## Use Transport Layer Security
|
|
|
|
# secure = false
|
|
|
|
|
2016-09-01 12:11:42 +00:00
|
|
|
## Optional TLS Config
|
|
|
|
# tls_ca = "/etc/telegraf/ca.pem"
|
2019-08-02 23:56:49 +00:00
|
|
|
# tls_cert = "/etc/telegraf/cert.pem"
|
|
|
|
# tls_key = "/etc/telegraf/key.pem"
|
2016-09-01 12:11:42 +00:00
|
|
|
## Use TLS but skip chain & host verification
|
|
|
|
# insecure_skip_verify = false
|
|
|
|
|
|
|
|
## Data format to output.
|
2017-04-27 21:59:18 +00:00
|
|
|
## Each data format has its own unique set of configuration options, read
|
2016-09-01 12:11:42 +00:00
|
|
|
## more about them here:
|
|
|
|
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
|
|
|
data_format = "influx"
|
|
|
|
```
|