ktal90 / logmatic-logplex-sampler

A simple ruby app that samples and forwards incoming events

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logmatic-logplex-sampler

A simple ruby app that samples and forwards incoming events to Logmatic.io

Installation

From the console:

git clone https://github.com/logmatic/logmatic-sampler
cd logmatic-sampler
heroku login
heroku create
git push heroku master

Or directly:

Deploy

Usage

Once the app is deployed, you only need to setup a drain as follow:

heroku drains:add https://<your-logmatic-sampler>.herokuapp.com/sampler/<rate>/<your-api-key>
  • <your-logmatic-sampler> is your instance of logmatic-sampler
  • <rate> the sampling rate. Set to 10 for 10% and so on
  • <your-api-key> is your logmatic key

About

A simple ruby app that samples and forwards incoming events

License:MIT License


Languages

Language:Ruby 100.0%