godot-influxdb

0.2.0 • Public • Published

http://influxdb.org forwarder for http://github.com/nodejitsu/godot.

Example

var godot = require('godot');
var influxdb = require('godot-influxdb');
godot.createServer({
  type: 'tcp',
  multiplex: false,
  reactors: [
    function(socket) {
      socket
        .pipe(godot.console())
        .pipe(influxdb({
          username: 'root',
          password: 'root',
          database: 'a-existing-influx-database',
          port: 8083,
          host: 'localhost',
          format: function(data) {
            return {
              name: 'custom.name.because.i.can',
              metric: {
               'anything': 'that influx can understand',
               time: data.time,
               metaValue: data.meta.value
             }
           };
        }));
    }
    
  ]
}).listen(1337);

Warning

http://github.com/nodejitsu/godot currently added as dependency, I'm gonna move it peerDependency as soon as 1.0.0 will be released.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i godot-influxdb

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • oroce