Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
  .circleci
  lib
  spec
  tmp
  .bundler-audit.yml
  .gitignore
  .reek.yml
  .rubocop.yml
  .rubocop_todo.yml
  .ruby-gemset
  .ruby-version
  Brewfile
  CHANGELOG.md
  CLAUDE.md
  Gemfile
  Gemfile.lock
  README.md
  Rakefile
  librato_shim.gemspec
Size: Mime:
  README.md

librato_shim

A shim for apps using the Librato gem, to facilitate migration to Not Librato.

Installation

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!

Usage

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!

Releasing

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
NOTE

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.

Contributing

  1. Fork it ( https://github.com/GoCarrot/librato_shim/fork )
  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 a new Pull Request