CloudWatch Custom Metrics in Ruby
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
config.example.yml
rubywatch.rb

README.md

RubyWatch

Amazon CloudWatch daemon written in Ruby

Install ruby-hmac gem.

Setup

Create a config.yml based on the content of config.example.yml.

Make rubywatch.rb executable:

$ chmod +x rubywatch.rb

Usage

To simply run the script once:

$ ./rubywatch.rb

To make the script run every minutes, create a file in /etc/cron.d/ with the content:

* * * * * root /path/to/rubywatch/rubywatch.rb

... or simply put the above content in /etc/crontab. And to make the script run every 5 minutes instead, use:

*/5 * * * * root /path/to/rubywatch/rubywatch.rb