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:
- Railtie which autoloads a scheduled stats pushed to Stats
- Ruby GC Stats
- Phusion Passenger (if installed)
- Puma (if installed)
- 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