node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

node-collectd

collectd

NodeJS library which can retrieve values from collectd and stores it into a local leveldb database.

Getting Started

Install the module with: npm install collectd

Documentation

(Coming soon)

Examples

var CollectD = require('./lib/collectd');
 
var collectd = new CollectD();
 
var metrics = [
    'trogdor.campjs.com/interface-en1/if_errors'
    , 'trogdor.campjs.com/interface-en1/if_octets'
    , 'trogdor.campjs.com/interface-en1/if_packets'
    , 'trogdor.campjs.com/load/load'
    , 'trogdor.campjs.com/memory/memory-active'
    , 'trogdor.campjs.com/memory/memory-free'
    , 'trogdor.campjs.com/memory/memory-inactive'
    , 'trogdor.campjs.com/memory/memory-wired'
];
 
collectd.start(metrics, 10000);

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

(Nothing yet)

License

Copyright (c) 2013 Mark Wolfe
Licensed under the MIT license.