Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
CloudWatch Custom Metrics in Ruby
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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
Something went wrong with that request. Please try again.