1.0.0 • Published 9 years ago

influxdb-udp v1.0.0

Weekly downloads
9
License
MIT
Repository
github
Last release
9 years ago

node-influxdb-udp

NPM version Build status Test coverage Dependency Status License Downloads Gittip

UDP-based InfluxDB writing utility similar to influx-udp, but with a slightly different API.

API

var influx = new Influx(options)

var Influx = require('influxdb-udp');
var influx = new Influx({

})

Options:

  • port
  • host

influx.write(name, data)

Write to a series with a name with data. data can either be a single hash object or an array of them.

influx.write('my_logs', {
  count: 1
})

influx.write('my_logs', [
  {
    count: 1
  },
  {
    count: 2
  }
])

Note that when writing multiple data points, an intersection of all the columns will be used.