RabbitMQ Cheat Sheet
Get Admin Username and Password
# Username
kubectl -n openstack get secret rabbitmq-default-user -o jsonpath="{.data.username}" | base64 --decode
# Password
kubectl -n openstack get secret rabbitmq-default-user -o jsonpath="{.data.password}" | base64 --decode
Opening the UI
Then open http://localhost:15672/ in your web browser and log in using the credentials from above.
CLI
List exchanges
List vhosts
List queues
More details:
kubectl -n openstack exec -it rabbitmq-server-0 -c rabbitmq -- rabbitmqadmin list queues vhost name node messages message_stats.publish_details.rate
Listen to the messages
For example:
kubectl -n openstack exec -it rabbitmq-server-0 -c rabbitmq -- rabbitmqadmin --vhost=nova get queue=notifications.info ackmode=ack_requeue_true count=5