documentcloud / crowd-spotter

Statistics on Cloud Crowd performance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crowd::Spotter

Crowd Spotter monitors the performance of Cloud Crowd. It periodically gathers statistics on Job Pending/Processing/Completion counts and displays them on an webpage as an interactive dashboard.

Installation

Add this line to your application's Gemfile:

gem 'crowd-spotter'

And then execute:

$ bundle

Or install it yourself as:

$ gem install crowd-spotter

Usage

Crowd::Spotter is implemented as a rack application. Accordingly it can be ran stand-alone with an example config.ru.

require 'crowd/spotter' run Crowd::Spotter::Application

Or mounted into a Rails application with route.rb:

require 'crowd/spotter' Rails.application.routes.draw do mount Crowd::Spotter::Engine, at: "/stats" end

It's also possible to use Rack::Cascade

Contributing

  1. Fork it ( http://github.com//crowd-spotter/fork )
  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

About

Statistics on Cloud Crowd performance

License:MIT License


Languages

Language:JavaScript 71.4%Language:Ruby 26.3%Language:CSS 2.3%