[rabbitmq-discuss] Way to get federation status for a particular exchange

Simon MacMullen simon at rabbitmq.com
Thu Sep 25 12:50:21 BST 2014


On 25/09/14 06:34, Badjatya, Nikunj wrote:
> Hello All,

Hi. NB: this list is going away soon, redirecting to the new list.

> Is there a way to get federation status for a particular exchange?
>
> The command “*rabbitmqctl eval 'rabbit_federation_status:status().'*”
> gives information of available exchanges and queues. Is it possible to
> get information of only one exchange of interest?

You can filter the list returned by rabbit_federation_status:status() 
with something like:

$ rabbitmqctl eval '[S || S <- rabbit_federation_status:status(), 
proplists:get_value(exchange, S) =:= <<"amq.topic">>].'

Obviously you can use this to filter on other keys too.

Cheers, Simon


More information about the rabbitmq-discuss mailing list