node-collectd

NodeJS library which can retrieve values from collectd.

npm install node-collectd
4 downloads in the last week
8 downloads in the last month

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.

npm loves you