collector-influxdb

1.0.0 • Public • Published

influxdb

NPM version Build status Test coverage Dependency Status License Downloads Gittip

Batch your InfluxDB UDP writes to not flood your network with calls. With a minimum byte size, tiny UDP writes are avoided.

API

const client = InfluxDB(options)

const client = InfluxDB(options)

Options:

  • .port - influxdb port
  • .host - influxdb host
  • .minlength=1500 - don't send data until this approximate packet size is reached
  • .maxlength=10000 - prematurely send data if the approximate package size is larger than this
  • .interval=1000 - interval to send packets

client.send(database, documents)

Send documents to a database. You could send one document or multiple.

client.send('my.database', {
  user: 'asdf'
})
 
client.send('my.other.database', [
  {
    user: 1
  },
  {
    user: 2
  }
])

Package Sidebar

Install

npm i collector-influxdb

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jongleberry