Skip to content

arcodergh/rq-cloudwatch

 
 

Repository files navigation

RQ CloudWatch

Utility to report RQ queue and worker status to AWS CloudWatch. It can be run either as a standalone utility or as a Docker container.

Running as Docker container

When run in a Docker container rq-cloudwatch runs as a service and getting the RQ info every INTERVAL seconds and reporting it to CloudWatch. The service is restarted automatically if it fails.

docker run -d quay.io/humu/rq-cloudwatch \
  -e AWS_REGION=... \
  -e REDIS_URL=... \
  -e ENVIRONMENT=... \
  -e INTERVAL=... \
  /sbin/my_init

where:

  • AWS_REGION - CloudWatch AWS region name
  • ENVIRONMENT - name of the RQ environment to report on, e.g., "prod-1"
  • REDIS_URL - redis URL
  • INTERVAL - how often to collect and report data, in seconds

Running as command line utility

It can report data once (good for cron job) or in a forever loop (good for running as a runit service). See help for details.

./mon-put-rq-stats.py -h

LICENSE

MIT License

About

Utility to reprot RQ status to AWS Cloudwatch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 76.7%
  • Makefile 19.1%
  • Shell 4.2%