0
0
RabbitMQdevops~30 mins

Management plugin and HTTP API in RabbitMQ - Mini Project: Build & Apply

Choose your learning style9 modes available
Using RabbitMQ Management Plugin and HTTP API
📖 Scenario: You are setting up RabbitMQ on a server and want to monitor and manage it using the Management plugin and HTTP API. This will help you see queues, exchanges, and messages easily through a web interface and programmatically.
🎯 Goal: Enable the RabbitMQ Management plugin, verify it is running, and use the HTTP API to list all queues on the server.
📋 What You'll Learn
Enable the RabbitMQ Management plugin using the correct command
Start or restart RabbitMQ server to apply changes
Use curl to call the HTTP API endpoint for listing queues
Print the HTTP API response to see the list of queues
💡 Why This Matters
🌍 Real World
RabbitMQ is widely used for messaging between applications. The Management plugin and HTTP API let you monitor and control RabbitMQ easily through a web interface or scripts.
💼 Career
Knowing how to enable and use RabbitMQ's Management plugin and HTTP API is important for DevOps engineers and system administrators to maintain messaging infrastructure and troubleshoot issues.
Progress0 / 4 steps
1
Enable the RabbitMQ Management Plugin
Run the command rabbitmq-plugins enable rabbitmq_management to enable the Management plugin on your RabbitMQ server.
RabbitMQ
Need a hint?

This command activates the management plugin so you can access the web UI and HTTP API.

2
Restart RabbitMQ Server
Restart the RabbitMQ server using sudo systemctl restart rabbitmq-server to apply the plugin changes.
RabbitMQ
Need a hint?

Restarting the server applies the plugin activation.

3
Use HTTP API to List Queues
Use curl -u guest:guest http://localhost:15672/api/queues to call the HTTP API and get the list of queues from RabbitMQ.
RabbitMQ
Need a hint?

This command uses the default guest user to authenticate and fetch queue info from the HTTP API.

4
Display the List of Queues
Print the output of the curl command to see the JSON list of queues on the RabbitMQ server.
RabbitMQ
Need a hint?

The output will be a JSON array showing queues. You see it directly in the terminal after running the curl command.