rabbitmq alarms plugin
Description
Section titled “Description”The rabbitmq_alarms plugin allows to monitor the alarms raised by a RabbitMQ node.
There are three types of alarms:
- memory alarm - It is raised when
vm_memory_high_watermarkis reached. It specifies a memory limit for RabbitMQ server at which it blocks publishers and raises memory alarms. See more details in documentation. - disk alarm - It is raised when disk space used by RabbitMQ is above specified limit. Also all publishers are block, until space is available again. See more details in documentation.
- file descriptors alarm - The file handlers are used for opening files and TCP connections. If the are too many file descriptors used, alarm is raised. See more details in documentation.
The first two alarms use the rabbit_alarm module, which basically allows to subscribe for the alarm events.
So they are implemented in a reactive way.
However, it is not possible to subscribe for the latter event.
It has to be checked manually.
Therefor there is a timer, which triggers checking the state of the alarm using rabbit_alarm:get_alarms() function.
The interval is configurable.
Supported versions.
Section titled “Supported versions.”Official stable Rabbit releases newer than 2.3.0 are supported.
Applications it depends on
Section titled “Applications it depends on”rabbit
Modules
Section titled “Modules”wombat_plugin_rabbitmq_alarms
Configuration options
Section titled “Configuration options”file_handles_poll_interval: Defines the interval in milliseconds between subsequent queries to RabbitMQ if file_handle alarm is raised. Default value:10000- 10 seconds.
Example wombat.config entry
Section titled “Example wombat.config entry”%% Set the static queues{set, wo_plugins, plugins, rabbitmq_alarms, file_handles_poll_inteval, 10000}.Reports
Section titled “Reports”This plugin reports the following alarms:
rmq_memory_high_watermarkrmq_disk_limitrmq_file_descriptor_limit
