Map third-party service POST hooks to Librato Annotations
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config Setup for cedar deployment. Jun 18, 2012
.gitignore Initial commit. Jun 18, 2012
Gemfile Add faraday_middleware gem that is now required for :json request mid… Sep 14, 2014
Gemfile.lock Updated Gemfile.lock after faraday_middleware addition Sep 14, 2014
LICENSE Initial commit. Jun 18, 2012
Procfile Setup for cedar deployment. Jun 18, 2012
README.md
app.rb Add faraday_middleware gem that is now required for :json request mid… Sep 14, 2014
config.ru Initial commit. Jun 18, 2012
libraries.rb Initial commit. Jun 18, 2012

README.md

Librato Annotations Hook

Simple Sinatra app to map third-party service webhooks to Librato Metric's annotations API.

To deploy this app to Heroku:

$ git clone https://github.com/librato/librato-annotate.git
Cloning into 'librato-annotate'...
remote: Counting objects: 27, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 27 (delta 9), reused 26 (delta 8)
Unpacking objects: 100% (27/27), done.

$ cd librato-annotate

$ heroku create
Creating evening-chamber-4158... done, stack is cedar
http://evening-chamber-4158.herokuapp.com/ | git@heroku.com:evening-chamber-4158.git
Git remote heroku added

$ git push heroku master

Supported Services

Heroku HTTP Post Hook

NOTE: If you are using the Librato Heroku Addon or have setup a log-drain for your app, release annotations are now published to your Librato account automatically.

Supports Heroku's HTTP Post Hook.

Route: POST /heroku

Required Parameters:

  • email: Your Librato Metrics email address.
  • token: Your Librato Metrics API token.
  • name: Annotation stream name to create annotations under.

Optional Parameters:

  • github_repo: URL of a backing GH repo, for example: https://github.com/librato/myapp. If this is set a link will be added that points to the deployed commit.

To add as a deploy hook to a Heroku app:

$ heroku addons:add deployhooks:http --url="http://evening-chamber-4158.herokuapp.com/heroku?email=[email]&token=[token]&name=[name]&github_repo=[github repo]"