jandelgado/rabtap

Feature Request: Add "json" as valid output for "info" command

manuel-koch opened this issue · 2 comments

To ease parsing of rabtap output, it would be nice if "json" would be a valid output format, using it like
rabtap info --stats --format=json

I hesitated to implement this feature, because the REST API of RabbitMQ, which rabtap uses, does already provide this information: https://rawcdn.githack.com/rabbitmq/rabbitmq-server/v3.9.1/deps/rabbitmq_management/priv/www/api/index.html

rabtap offers an aggregated view combining different resources. Could you also use the REST API directly?

Yes, I could use RabbitMQ REST API - just thought it would be convenient to use rabtap for that too.