-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support passive queue declaration in amqp_consumer #5831
Conversation
So this works for passive queues but it still requires an exchange name to be specified. If I don't and the AMQP creds don't have permission to create an exchange you will get this message `2019-05-16T17:57:48Z E! [agent] Service for input inputs.amqp_consumer failed to start: error declaring exchange: Exception (403) Reason: "ACCESS_REFUSED - operation not permitted on the default exchange" 2019-05-16T17:57:48Z E! [telegraf] Error running agent: error declaring exchange: Exception (403) Reason: "ACCESS_REFUSED - operation not permitted on the default exchange"` |
I've updated the plugin to skip exchange declaration when it is set to "", as otherwise it seems to be impossible to use the default exchange and anyway it really should be optional. Similar for bindings, they are now only created when set to a non empty string. |
Required for all PRs: