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.
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
$ git clone https://github.com/eric/p2met
$ cd p2met
$ heroku create
$ git push heroku master
Sign into your Librato Metrics account and create a new API token with record only access.
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