Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Collectd's binary wire protocol implementation in NodeJS
JavaScript
branch: master
Failed to load latest commit information.
README.md Update README.md
package.json Add dependencies to package.json
packet.js Prepare for npmjs release as collectjs

README.md

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();
});
Something went wrong with that request. Please try again.