MetPX / sarracenia

https://MetPX.github.io/sarracenia
GNU General Public License v2.0
46 stars 22 forks source link

sr3 status display size of queue. #649

Open petersilva opened 1 year ago

petersilva commented 1 year ago

when people do an sr3 status, they want to see the size of the upstream queue. AMQP has no API to be able to do this. I think you can do something with MQTT, but in any event, is not clear how to implement.

option 1: Query/Response API with messages.

publish a message to the upstream broker that formulates a query of some kind, and it publishes a message in response.

option 2: inline metrics messages: Mixed in with the normal publication messages would be a message from the broker that includes the size of the upstream queue. subscriber could note it down for local use.

could be in a separate topic tree, so binding could be optional.

both options require flow on the broker side that builds custom messages.

petersilva commented 1 year ago

users have requested multiple times to see the queue size that, on rabbitmq isn't available to users without giving them additional permissions to use the management GUI.

petersilva commented 9 months ago

It turns out the current implementation breaks things on high traffic queues. See #953