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.
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 nameENVIRONMENT
- name of the RQ environment to report on, e.g., "prod-1"REDIS_URL
- redis URLINTERVAL
- how often to collect and report data, in seconds
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