Awesome
node-influxdb-udp
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.