brandonblack/mongo-tools — pull request #75 by kiran-b (2013-04-02 23:24:47+00:00)
Title: Background Job for Collecting Operation Counters

Create background job that collects all the status stats and info about each MongoDB node in the replica set and stores that information in a capped collection in "mongo-tools".

The job could poll the database every 20 secs or so and it store something like this each time:

```javascript
{
node: 'host:port',
ops: {
updates: xx,
inserts: xx,
deletes: xx,
},
connections: xxx,
cursors: xxx,
ts: ISODate('...')
}
```

It would effectively just record the node, counts for all ops and a timestamp for when the info was recorded and stash this in a collection without our own "mongo-tools" database.﻿

Requirements:
- [ ] Collection of all operation types on a configurable interval.
- [ ] Support for single MongoDB instances, replica sets and sharded clusters.
- [ ] Configuration (YAML) for storing settings for which nodes to monitor, the polling interval and capped collection size.
- [ ] Common Ruby API for using this data throughout the tool suite.
- [ ] Feature Documentation on the Wiki.

Depended on By:
- #40 Database Visualizer
- #39 Database Explorer
- #41 Alerts & Monitoring