eric / p2met

Papertrail l2met-style webhook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Papertrail to Librato Metrics

A simple webhook to take l2met-styled messages (generally logged from Heroku) and send them to Librato Metrics. Built specifically for use with the Heroku Labs log-runtime-metrics.

Deploying

Step 0: Register for Papertrail and Librato Metrics

These instructions assume you have a Papertrail and Librato Metrics account. Both are available as Heroku add-ons.

$ heroku addons:add papertrail
$ heroku addons:add librato

The biggest advantage to using p2met is to track the load and memory usage of your Heroku apps. Add the log-runtime-metrics Heroku Labs feature to have access to these metrics.

$ heroku labs:enable log-runtime-metrics
$ heroku restart

Step 1: Create a new Heroku app

$ git clone https://github.com/eric/p2met
$ cd p2met
$ heroku create
$ git push heroku master

Step 2: Create a Librato Metrics API token

Sign into your Librato Metrics account and create a new API token with record only access.

Generate Librato Metrics API Token.png

Step 3: Configure Papertrail

Create the following Papertrail saved search:

source= AND measure= AND val=

Configure the search to alert using a web hook to the p2met app created in step 1. Fill in LIBRATO_USER and LIBRATO_API_TOKEN with the email address of your Librato Metrics account and the token created in step 2.

https://snowing-forest-293.herokuapp.com/submit?librato_user=LIBRATO_USER&librato_token=LIBRATO_TOKEN

About

Papertrail l2met-style webhook

License:MIT License


Languages

Language:Ruby 100.0%