Last active
October 6, 2015 23:17
-
-
Save TheDeveloper/3068261 to your computer and use it in GitHub Desktop.
Print a summary of the total number of messages in all rabbitMQ queues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Print total number of messages in all queues | |
rabbitmqctl list_queues | awk '{s+=$2} END {print s}' | |
# List all queues, sorted by number of queued messages in descending order | |
rabbitmqctl list_queues | sort -nr -k2 | less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment