Dashboarder

An experimental library to help in the construction of Librato Metrics dashboards from simple definitions.

Installation

Fetch the repo for now. Will consider a gem release once things seem steady.

Usage

$ export [email protected]
$ export LIBRATO_KEY=123456
$ bundle exec irb -I lib -r dashboarder
  # a simple dashboard definition
  definition = [
    'my dashboard name',
    [:an_instrument_name, :a_metric_name, :another_metric_name],
    [:another_instrument_name, :a_metric_name]
  ]

  # this will ensure the dashboard exists
  # will not overwrite if already does
  Dashboarder::Dashboard.compose(definition)

  # compose an individual instrument
  # will not overwrite if already exists
  Dashboarder::Instrument.compose(['my instrument', :first_metric, :second_metric])

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request