1
0
Fork 0
telegraf/plugins/outputs/nats/testcases/js-config.conf

16 lines
472 B
Text
Raw Normal View History

## NATS output with jetstream stream config provided
[[outputs.nats]]
## URLs of NATS servers
servers = ["nats://localhost:4222"]
subject = "telegraf-subject"
data_format = "influx"
[outputs.nats.jetstream]
name = "my-telegraf-stream"
retention = "workqueue"
max_consumers = 10
discard = "old"
storage = "memory"
max_msgs = 100000
max_bytes = 104857600 # 100 MB
max_age = 86400000000000 # in the int64 format
num_replicas = 1