noxdafox / rabbitmq-message-deduplication

RabbitMQ Plugin for filtering message duplicates
Mozilla Public License 2.0
277 stars 34 forks source link

Metrics for deduplication #81

Closed sgolod closed 2 years ago

sgolod commented 2 years ago

Is it possible to get amount of messages, what was rejected with deduplicator plugin?

noxdafox commented 2 years ago

Hello,

the plugin itself does not provide metrics but you can always get an idea based on how many messages are published within an exchange and how many are published out of it. The exchange is of type fanout so you can easily infer that even when it's bound to multiple destinations.

Same for a queue-level deduplication: you could compare how many messages were published to its exchange vs how many ended up in the queue.

noxdafox commented 2 years ago

Closing this issue, please re-open it if you feel the solution was not satisfying.