michaelklishin / rabbit-hole

RabbitMQ HTTP API client in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[rfc] support message_stats -> * -> samples

jippi opened this issue · comments

Hi,

First, thank you for a very usable piece of open source software! :)

If you request the RabbitMQ management API with additional GET arguments, you can also get sample data from queue(s), which is used to graph activity charts in the UI.

Today these options are not exposed in this library, is that should that is planned?

Example query

/api/queues/%2F?lengths_age=1800&lengths_incr=30&msg_rates_age=1800&msg_rates_incr=30&data_rates_age=1800&data_rates_incr=30&columns=name,messages_ready,consumer_utilisation,message_stats.publish_details,message_stats.ack_details,consumer_utilisation

No. Not only this is the first time it is requested, I'm not even sure this feature is still around after rabbitmq/rabbitmq-management#236.

Why would you need samples beyond debugging the plugin itself?

OK, I'm being told that the feature is still there. I guess we can add support for query options and parse back extra results. Let's discuss this in #89.