After talking the details of the management of RabbitMQ using a command-line tool, we are now ready to talk about the management plugin. Management plugin is simply a web application that is written in Erlang. You can monitor and control RabbitMQ using the management web interface. Management plugin is provided as default by the RabbitMQ installation; however, you need to enable the management plugin to use it by performing the following steps:
rabbitmq-plugins
command:rabbitmq-plugins enable rabbitmq_management
rabbitmqctl stop rabbitmq-server
http://{your-ip-address}:15672/
guest:guest
. Note that guest:guest
won't work for remote a RabbitMQ server later than version 3.3.After locating the, management URL, you can see a dashboard, as shown here:
In the dashboard interface, you can view the RabbitMQ server statistics and information related to current connections, channels, exchanges, queues, and consumers. Additionally, the dashboard can be used for monitoring; we will cover this in Chapter 7, Monitoring. Moreover, you have a menu on the header side that redirects to the detailed part of each module.
After clicking on the Connections tab on the menu, you can see the Connections module in the following image:
You can find the related information for each of the connections. Moreover, you are allowed to close the connection with the help of the Connections web page. After clicking on the related connection, you can find a button titled Force Close. Whenever you click on this button, the connection will be closed forcibly.
The following image simply describes the Channels tab and its web page:
In the Channels web page, you can find the related information about each channel. Each channel is monitored with its message rates, connections, and so on in this web page.
The following image shows the Exchanges module and its web page in the Management plugin:
In the Exchanges web page, we can monitor all of the exchanges in the current RabbitMQ server with its related information. Moreover, if you click on each exchange, you'll get detailed information about the clicked exchange item. You can publish and delete a message through a selected exchange. Furthermore, you can delete the selected exchange as well. In the Exchanges web page, you are allowed to add a new exchange.
The following image shows the Queues web page:
In the Queues web page, you can find the list of the queues and their related information. Moreover, you can add a new queue with the Add a new queue option and fill in the details in the required tabs. If you click on one of the queues in this web page, you can find the detailed information about the selected queue. Furthermore, you can add a new routing key for binding, publishing, and getting a message from the queue.
Let's talk about the last item of our Management plugins called the Users web page, which is as shown in the following image:
Our last web page is the admin part that is accessible for only administrators. You can see the details of each user and add a new user with the help of the Admin web page. Additionally, the Admin web page gives us an opportunity to control and manage virtual hosts and policies as well.