Add option to disconnect after a message limit is reached in amqp output

This commit is contained in:
Daniel Nelson
2018-06-03 18:12:48 -07:00
committed by Daniel Nelson
parent 179bcfdcbb
commit da6ad34fc8
6 changed files with 619 additions and 362 deletions

View File

@@ -50,7 +50,7 @@ The following defaults are known to work with RabbitMQ:
binding_key = "#"
## Maximum number of messages server should give to the worker.
prefetch_count = 50
# prefetch_count = 50
## Auth method. PLAIN and EXTERNAL are supported
## Using EXTERNAL requires enabling the rabbitmq_auth_mechanism_ssl plugin as

View File

@@ -100,11 +100,12 @@ func (a *AMQPConsumer) SampleConfig() string {
## AMQP queue name
queue = "telegraf"
## Binding Key
binding_key = "#"
## Maximum number of messages server should give to the worker.
prefetch_count = 50
# prefetch_count = 50
## Auth method. PLAIN and EXTERNAL are supported
## Using EXTERNAL requires enabling the rabbitmq_auth_mechanism_ssl plugin as