Publish number of messages in a RabbitMQ queue as AWS Cloudwatch metrics. Can also be configured to just log, and not publish to cloudwatch.
All configuration is through environment variables.
metric_interval
- Number of seconds to sleep between publishing metrics, default is300
. Use-1
for run only once and exitlog_only
- Only log, don't publish to cloudwatch. To enable set this to 1 ortrue
rabbitmq_management_host
- RabbitMQ host, format ishostname:port
rabbitmq_management_user
- RabbitMQ usernamerabbitmq_management_password
- RabbitMQ passwordrabbitmq_vhost
- RabbitMQ vhost, default is/
AWS_REGION
- AWS region to use, default is us-east-1cloudwatch_namespace
- Cloudwatch namespacepublish_sum
- publish an additional metric that is the sum of depths of all queues. This is only useful if you have more than 1 queue.