Repository URL to install this package:
|
Version:
0.5.2 ▾
|
A shim for apps using the Librato gem, to facilitate migration to Not Librato.
Add this line to your application's Gemfile:
gem 'librato_shim'
And then execute:
bundle
Add an initializer anywhere that Sidekiq is loaded:
LibratoShim::Sidekiq.init!
In your config/application.rb or equivalent, add:
require 'librato_shim' # APP_NAME is the system component, e.g. `taro`. # ENV_NAME is the deployment environment, e.g. `production`. # API_KEY is the Hosted Graphite API key. LibratoShim.init!(APP_NAME, ENV_NAME) # If you're not seeing custom metrics flowing, debug mode may be helpfule: LibratoShim.debug!
Note that we DO NOT release this to RubyGems! We release it to GemFury!
fury login # Log into the account that has access to Teak's account (alexsc)! bundle exec rake build fury push --account alexsc pkg/librato_shim-[version].gem
Also, you can add a commit with a message reading Promote to: version and that will prompt a tag / release from CI. This must be the most recent commit on the master branch.
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)