Skip to content

Instantly share code, notes, and snippets.

@TheDeveloper
Last active October 6, 2015 23:17
Show Gist options
  • Save TheDeveloper/3068261 to your computer and use it in GitHub Desktop.
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
# 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