Publishes CloudWatch metrics for time to clear/rate of clearing an sqs queue
Say we have some process that rapidly fills up an SQS queue, and then another process that gradually processes messages. We might want to know
- How long it takes the queue to clear (TimeToClear)
- How quickly the queue is being emptied (MessageClearRate)
- How quickly the queue is being filled (MessageAddRate)
time_to_clear_sqs derives these metrics from CloudWatch and then publishes them.
- Make sure you have ruby and bundler installed
- Change directory to the repo
- Run:
bundle install cp config.ini.sample config.ini- Edit config.ini to suit your needs
- Run
ruby time_to_clear.rb