My topology includes exchanges bound to other exchanges but all of the rabbitmq_exchange_messages_* metrics for these exchanges are 0.
The counters are only non-zero for the exchange that messages are initially published into.
Here's an example:
All messages are initially published into Headers exchange A.
Headers exchange B is bound to A with argument HeaderX: "foo"
Queue C is bound to B with argument HeaderY: "foo"
Queue D is bound to B with argument HeaderY: "bar"
Headers exchange E is bound to A with argument HeaderX: "bar"
Queue F is bound to E with argument HeaderY: "foo"
Queue G is bound to E with argument HeaderY: "bar"
Say 4 messages are published to A, one for each permutation of HeaderX and HeaderY so one each is routed into C, D, F, and G.
All other rabbitmq_exchange_messages_* metrics are 0.
I would expect the above metrics for exchanges B and E to both have value 2.
Also, why is rabbitmq_exchange_messages_published_total{exchange="A"} 0 when rabbitmq_exchange_messages_published_in_total{exchange="A"} and rabbitmq_exchange_messages_published_out_total{exchange="A"} are both 4?
Thanks @deadtrickster for this plugin.
My topology includes exchanges bound to other exchanges but all of the
rabbitmq_exchange_messages_*
metrics for these exchanges are 0. The counters are only non-zero for the exchange that messages are initially published into.Here's an example: All messages are initially published into Headers exchange A.
Headers exchange B is bound to A with argument
HeaderX: "foo"
Queue C is bound to B with argumentHeaderY: "foo"
Queue D is bound to B with argumentHeaderY: "bar"
Headers exchange E is bound to A with argument
HeaderX: "bar"
Queue F is bound to E with argumentHeaderY: "foo"
Queue G is bound to E with argumentHeaderY: "bar"
Say 4 messages are published to A, one for each permutation of HeaderX and HeaderY so one each is routed into C, D, F, and G.
Metrics are as follows:
All other
rabbitmq_exchange_messages_*
metrics are 0.I would expect the above metrics for exchanges B and E to both have value 2.
Also, why is
rabbitmq_exchange_messages_published_total{exchange="A"}
0 whenrabbitmq_exchange_messages_published_in_total{exchange="A"}
andrabbitmq_exchange_messages_published_out_total{exchange="A"}
are both 4?Thanks