Use list of brokers in amqp output and amqp_consumer

This commit is contained in:
Daniel Nelson
2018-06-03 17:05:33 -07:00
committed by Daniel Nelson
parent 5e267c941d
commit 5a38c152b6
4 changed files with 128 additions and 32 deletions

View File

@@ -24,8 +24,18 @@ For an introduction to AMQP see:
```toml
# Configuration for the AMQP server to send metrics to
[[outputs.amqp]]
## AMQP url
url = "amqp://localhost:5672/influxdb"
## Broker to publish to.
## deprecated in 1.7; use the brokers option
# url = "amqp://localhost:5672/influxdb"
## Brokers to publish to. If multiple brokers are specified a random broker
## will be selected anytime a connection is established. This can be
## helpful for load balancing when not using a dedicated load balancer.
brokers = ["amqp://localhost:5672/influxdb"]
## Authentication credentials for the PLAIN auth_method.
# username = ""
# password = ""
## Exchange to declare and publish to.
exchange = "telegraf"