collectjs

0.0.3 • Public • Published

CollectJS

Collectd binary network protocol implementation in NodeJS. Part of the StatsD <=> CollectD series

Requires:

npm install put bignum

Example:

var collectjs = require('collectjs');
var bridge = collectjs.create({host: 'NodeJS'});
var packet = bridge.packet({
    plugin: 'Test',
    type: 'gauge',
    values: [{type: 1, value: 42}]
});
var client = require('dgram').createSocket("udp4");
client.send(packet, 0, packet.length, 25826, "collectd.example.com", function() {
    client.close();
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    3
  • 0.0.2
    19
  • 0.0.1
    0

Package Sidebar

Install

npm i collectjs

Weekly Downloads

22

Version

0.0.3

License

BSD

Unpacked Size

3.1 kB

Total Files

3

Last publish

Collaborators

  • yarekt