https://github.com/remind101/collective
[DEPRECATED use https://github.com/remind101/r101-datadog instead] It collects metrics and puts it on STDOUT.
https://github.com/remind101/collective
Last synced: over 1 year ago
JSON representation
[DEPRECATED use https://github.com/remind101/r101-datadog instead] It collects metrics and puts it on STDOUT.
- Host: GitHub
- URL: https://github.com/remind101/collective
- Owner: remind101
- License: mit
- Created: 2013-08-02T19:00:16.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2017-04-04T18:20:13.000Z (over 9 years ago)
- Last Synced: 2025-04-05T20:04:15.745Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 67.4 KB
- Stars: 6
- Watchers: 89
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Collective
It collects metrics from various services/systems and outputs them to STDOUT
using the [l2met log convetions](https://github.com/ryandotsmith/l2met/wiki/Usage#logging-convention).
```
source=erics_mac_book_pro.local measure.redis.used_memory=1.02
source=erics_mac_book_pro.local measure.redis.connected_clients=2
source=erics_mac_book_pro.local measure.sidekiq.queues.processed=1275
source=erics_mac_book_pro.local measure.sidekiq.queues.failed=128
source=erics_mac_book_pro.local measure.redis.blocked_clients=0
source=erics_mac_book_pro.local measure.redis.connected_slaves=0
source=erics_mac_book_pro.local measure.sidekiq.queues.enqueued=0
source=erics_mac_book_pro.local measure.sidekiq.workers.busy=0
```
## Collectors
It includes collectors for the following:
* Sidekiq
* Redis
* Memcached
* RabbitMQ (You need to have the management plugin enabled)
* MongoDB
* Postgres
* Honeybadger
* New Relic
* TrackJS
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'collective-metrics'
```
## Usage
Add a Collectfile:
```ruby
use Collective::Collectors::Sidekiq
use Collective::Collectors::Redis
use Collective::Collectors::RabbitMQ, url: ENV['RABBITMQ_MANAGEMENT_URL']
use Collective::Collectors::Mongodb, config: File.expand_path('./config/mongoid.yml')
```
Start the collectors.
```bash
$ collective start
```
If you're running this on heroku, just add a line to your Procfile:
```ruby
web: bundle exec rackup
collector: bundle exec collective start
```
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request