Project

takwimu

0.0
No commit activity in last 3 years
No release in over 3 years
Report GC usage data to StatsD.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 5.3
~> 10

Runtime

 Project Readme

takwimu - GC, Rack and Rails Statsd Reporter

A fork of trashed and barnes. There is also some ActiveSupport notification based on vitals

We had some of this functionality baked into our app in various forms and we decided to bring it all together into one gem.

The key features are:

  1. Railtie which autoloads a scheduled stats pushed to Stats
    1. Ruby GC Stats
    2. Phusion Passenger (if installed)
    3. Puma (if installed)
  2. ActionController and ActiveRecord per request stats pushed to StatsD

Note: If you are using Phusion Passenger you must run Passenger as a user with sudo capabilities since Passenger does not provide a facility to directly query statistics.

To do this add the user in the servers configuration:

For Apache add PassengerUser username to your server or virtual host configuration.

For Nginx add passenger_user username; to your http or server blocks.

This is a work in progress and we will keep adding more features but welcome any pull requests.

Setup

Rails 5

On Rails 5 (and Rails 3 and 4), add this to your Gemfile:

gem "takwimu"

Then run:

$ bundle install

Non-Rails

Add the gem to the Gemfile

gem "takwimu"

Then run:

$ bundle install

In your application:

require 'takwimu'

Then you'll need to start the client with default values:

Takwimu.start