项目作者: deepakputhraya

项目描述 :
AWS Cloudwatch for rabbitmq
高级语言: Python
项目地址: git://github.com/deepakputhraya/monitor-rabbitmq.git
创建时间: 2018-04-12T09:59:51Z
项目社区:https://github.com/deepakputhraya/monitor-rabbitmq

开源协议:MIT License

下载


monitor-rabbitmq

AWS Cloudwatch for rabbitmq

RabbitMQ monitoring with cloudwatch namespace as Resource/RabbitMQ. Each metric has the name that of the queue with count that of their existing message count. A special metric named TotalMessages that measures total number of messages in all queues.

Setup Environment variables

  1. RABBIT_MQ_URL = 'http://localhost:15672' # default
  2. RABBIT_MQ_USERNAME = 'guest' #default
  3. RABBIT_MQ_PASSWORD = 'guest' # default

Setup AWS Credentials

Also setup the AWS credentials ~/.aws/credentials that have access to cloudwatch metrics.

Setup the repo

  1. pip3 install -r requirements.txt

Setup a cron

Setup a cron that executes the python script as often as you want

Example:

Send metric every minutes

  1. * * * * * python3 /home/ubuntu/monitor-rabbitmq/app.py