Rabbit Spy
Rabbit Spy is a terminal-based monitoring tool for RabbitMQ queues. It provides a real-time overview of the status of all queues within a RabbitMQ server, including metrics like the number of messages, message states, and message stats.
Features
- Real-time monitoring of RabbitMQ queues.
- Displays queue statistics such as message count, ready messages, unacknowledged messages, and message state.
- Color-coded output for better visibility of important metrics.
- Automatic table resizing based on terminal window size.
- Updates every 5 seconds to provide near real-time data.
Installation
-
Clone the repository:
git clone https://github.com/genc-murat/rabbit-spy.git
cd rabbit-spy
-
Install dependencies:
Make sure you have Go installed (version 1.16 or later). You can download and install Go from the official website.
-
Build the application:
go build -o rabbit-spy
Configuration
Rabbit Spy requires a configuration file (config.json
) to connect to your RabbitMQ instance. The configuration file should be in the following format:
{
"rabbitmq": {
"username": "guest",
"password": "guest",
"host": "localhost",
"port": "5672",
"management_port": "15672"
}
}
Place this config.json
file in the same directory as the Rabbit Spy executable.
Usage
-
Run the application:
./rabbit-spy
-
Key Commands:
q
or Ctrl+C
to quit the application.
- Resize the terminal window to automatically adjust the table.
Dependencies
Rabbit Spy uses the following Go libraries:
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contribution
Contributions are welcome! Please fork the repository and submit a pull request for any enhancements, bug fixes, or new features.
Support
If you encounter any issues or have questions, please open an issue on the GitHub repository.