0.2.0 • Published 12 years ago
node-collectd v0.2.0
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
var collectd = require('collectd');
collectd.awesome(); // "awesome"
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.