Add secure option to NATS output to mirror input
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
This plugin writes to a (list of) specified NATS instance(s).
|
||||
|
||||
```
|
||||
```toml
|
||||
[[outputs.nats]]
|
||||
## URLs of NATS servers
|
||||
servers = ["nats://localhost:4222"]
|
||||
@@ -11,9 +11,14 @@ This plugin writes to a (list of) specified NATS instance(s).
|
||||
# password = ""
|
||||
## NATS subject for producer messages
|
||||
subject = "telegraf"
|
||||
|
||||
## Use Transport Layer Security
|
||||
# secure = false
|
||||
|
||||
## Optional TLS Config
|
||||
## CA certificate used to self-sign NATS server(s) TLS certificate(s)
|
||||
# tls_ca = "/etc/telegraf/ca.pem"
|
||||
# tls_cert = "/etc/telegraf/cert.pem"
|
||||
# tls_key = "/etc/telegraf/key.pem"
|
||||
## Use TLS but skip chain & host verification
|
||||
# insecure_skip_verify = false
|
||||
|
||||
@@ -23,15 +28,3 @@ This plugin writes to a (list of) specified NATS instance(s).
|
||||
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
||||
data_format = "influx"
|
||||
```
|
||||
|
||||
### Required parameters:
|
||||
|
||||
* `servers`: List of strings, this is for NATS clustering support. Each URL should start with `nats://`.
|
||||
* `subject`: The NATS subject to publish to.
|
||||
|
||||
### Optional parameters:
|
||||
|
||||
* `username`: Username for NATS
|
||||
* `password`: Password for NATS
|
||||
* `tls_ca`: TLS CA
|
||||
* `insecure_skip_verify`: Use SSL but skip chain & host verification (default: false)
|
||||
|
||||
Reference in New Issue
Block a user