Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heroku/barnes
Tell StatsD about request time, GC, objects and more. Latest Rails 4 and Ruby 2.1 support, and ancient Rails 2 and Ruby 1.8 support.
https://github.com/heroku/barnes
heroku-languages
Last synced: 3 months ago
JSON representation
Tell StatsD about request time, GC, objects and more. Latest Rails 4 and Ruby 2.1 support, and ancient Rails 2 and Ruby 1.8 support.
- Host: GitHub
- URL: https://github.com/heroku/barnes
- Owner: heroku
- License: mit
- Fork: true (basecamp/trashed)
- Created: 2017-08-09T17:00:40.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-07-23T15:10:50.000Z (4 months ago)
- Last Synced: 2024-07-23T17:36:11.329Z (4 months ago)
- Topics: heroku-languages
- Language: Ruby
- Homepage:
- Size: 150 KB
- Stars: 81
- Watchers: 46
- Forks: 11
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: MIT-LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
## Barnes - GC Statsd Reporter
A fork of [trashed](https://github.com/basecamp/trashed) focused on Ruby metrics for Heroku.
## Setup
### Rails 3, 4, 5, and 6
On Rails 6 (and Rails 3 and 4 and 5), add this to your Gemfile:
```
gem "barnes"
```Then run:
```
$ bundle install
```### Non-Rails
Add the gem to the Gemfile
```
gem "barnes"
```Then run:
```
$ bundle install
```In your puma.rb file:
```ruby
require 'barnes'
```Then you'll need to start the client with default values:
```ruby
before_fork do
# worker configuration
Barnes.start
end
```