Send notifications when predefined conditions are met
Project description
About RabbitMQ Alert
Send notifications when predefined conditions are met.
Which conditions?
Ready messages
Unacknowledged messages
Total queued messages
Number of connected consumers
Number of open connections
Number of nodes running
Memory used by each node in MBs
What type of notifications?
Currently the following are supported:
E-mails
Slack messages
Telegram messages
Installation
Use the PIP command, which should already exist in your Linux installation:
sudo pip install rabbitmq-alert
Usage
Execute with the global configuration file
Copy the example configuration file to the default path of the global configuration file:
sudo cp /etc/rabbitmq-alert/config.ini.example /etc/rabbitmq-alert/config.ini
sudo rabbitmq-alert
Execute with options
Example:
sudo rabbitmq-alert \ --host=my-server --port=55672 --username=guest --password=guest \ --vhost=%2F --queue=my_queue1,my_queue2 --ready-queue-size=3 --check-rate=300 \ --email-to=admin@example.com --email-from=admin@example.com \ --email-subject="RabbitMQ alert at %s - %s" --email-server=localhost
Execute with a custom configuration file
Then execute rabbitmq-alert with the configuration file option:
sudo rabbitmq-alert -c my_config.ini
Conditions
[Conditions:my-queue] ... [Conditions:my-other-queue] ...
Note that queue names also have to be defined in the [Server] section of the configuration file:
[Server] ... queues=my-queue,my-other-queue ...
Logging
Contribute
Prepare your environment
To start, you have to install the dev dependencies which are some required python packages:
make deps-dev
Run the tests!
After writing your awesomeness, run the test suites to ensure that everything is still fine:
make test
Do add tests yourself for the code you contribute to ensure the quality of the project.
Happy coding :-)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.