{"id":19723584,"url":"https://github.com/remind101/collective","last_synced_at":"2025-04-29T22:31:02.249Z","repository":{"id":9855193,"uuid":"11850545","full_name":"remind101/collective","owner":"remind101","description":"[DEPRECATED use https://github.com/remind101/r101-datadog instead] It collects metrics and puts it on STDOUT.","archived":false,"fork":false,"pushed_at":"2017-04-04T18:20:13.000Z","size":69,"stargazers_count":6,"open_issues_count":3,"forks_count":1,"subscribers_count":89,"default_branch":"master","last_synced_at":"2025-04-05T20:04:15.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remind101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-02T19:00:16.000Z","updated_at":"2019-08-13T15:24:42.000Z","dependencies_parsed_at":"2022-08-29T16:41:02.118Z","dependency_job_id":null,"html_url":"https://github.com/remind101/collective","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fcollective","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fcollective/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fcollective/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fcollective/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remind101","download_url":"https://codeload.github.com/remind101/collective/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251592963,"owners_count":21614450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T23:22:45.094Z","updated_at":"2025-04-29T22:31:01.516Z","avatar_url":"https://github.com/remind101.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Collective\n\nIt collects metrics from various services/systems and outputs them to STDOUT\nusing the [l2met log convetions](https://github.com/ryandotsmith/l2met/wiki/Usage#logging-convention).\n\n```\nsource=erics_mac_book_pro.local measure.redis.used_memory=1.02\nsource=erics_mac_book_pro.local measure.redis.connected_clients=2\nsource=erics_mac_book_pro.local measure.sidekiq.queues.processed=1275\nsource=erics_mac_book_pro.local measure.sidekiq.queues.failed=128\nsource=erics_mac_book_pro.local measure.redis.blocked_clients=0\nsource=erics_mac_book_pro.local measure.redis.connected_slaves=0\nsource=erics_mac_book_pro.local measure.sidekiq.queues.enqueued=0\nsource=erics_mac_book_pro.local measure.sidekiq.workers.busy=0\n```\n\n## Collectors\n\nIt includes collectors for the following:\n\n* Sidekiq\n* Redis\n* Memcached\n* RabbitMQ (You need to have the management plugin enabled)\n* MongoDB\n* Postgres\n* Honeybadger\n* New Relic\n* TrackJS\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'collective-metrics'\n```\n\n## Usage\n\nAdd a Collectfile:\n\n```ruby\nuse Collective::Collectors::Sidekiq\nuse Collective::Collectors::Redis\nuse Collective::Collectors::RabbitMQ, url: ENV['RABBITMQ_MANAGEMENT_URL']\nuse Collective::Collectors::Mongodb, config: File.expand_path('./config/mongoid.yml')\n```\n\nStart the collectors.\n\n```bash\n$ collective start\n```\n\nIf you're running this on heroku, just add a line to your Procfile:\n\n```ruby\nweb: bundle exec rackup\ncollector: bundle exec collective start\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Fcollective","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremind101%2Fcollective","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Fcollective/lists"}