voyeur

0.0.2 • Public • Published

Voyeur.io Collector

The collector is the engine room of Voyeur. A number of different collection agents are implemented, and more are on their way.

Usage

Using the voyeur.io collector in a project is very simple. First install the npm package:

npm install voyeur

Then, in your application code doing something similar to the following:

var voyeur = require('voyeur'),
    collector = voyeur.collectToDB();
 
// other stuff goes here
 
// on exit, stop collecting (this closes the db nicely)
process.on('exit', function() {
    collector.stop();
});

No in the above configuration, the collector will happily run up the default agents and save the data to a leveldb database in the samples directory. Presumably, however, you also want to get the data out and report on it somehow.

The simplest way to do this is through using the Connect middleware that is included in the voyeur package:

To be completed

Advanced Usage

To be completed

Readme

Keywords

none

Package Sidebar

Install

npm i voyeur

Weekly Downloads

2

Version

0.0.2

License

none

Last publish

Collaborators

  • damonoehlman