Skip to content
Write to InfluxDB using UDP.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib fix eslint errors Aug 26, 2017
test Fix indentations in test/index.js Aug 28, 2017
.eslintrc.js Add eslint, travis, and coveralls Aug 26, 2017
.gitignore Ignore node_modules Jun 13, 2014
.jshintrc Added jshint Jun 13, 2014
.travis.yml fix .travis.yml file Aug 26, 2017 Fixed up some licensing stuff Jun 13, 2014 coveralls badge Aug 26, 2017
package-lock.json Add package-lock.json Aug 28, 2017
package.json Bump version in package.json to 1.1.0 Aug 28, 2017


Build Status Coverage Status


Write to InfluxDB using its UDP interface.

When to use this

  • When you need to write frequently and quickly
  • When the speed of writes is more important than their reliability
  • When you would use statsd, but you need to store more than simple numeric data

When not to use this

  • If you need to read from InfluxDB
  • When you need to be absolutely certain every write has succeeded
  • If you want any confirmation from InfluxDB whatsoever

Where to get this

npm install --save influx-udp

How to use this

Configure InfluxDB for UDP:

var InfluxUdp = require('influx-udp');

var influxClient = new InfluxUdp({
    port: 4444,
    host: ''

var data = {
    visitors: [
            ip: '',
            username: 'harrison'
            ip: '',
            username: 'shawn'


/* Sends this, which will put two points into the "visitors" time series:
        "name": "visitors",
        "columns": ["ip", "username"],
        "points": [
            ["", "harrison"],
            ["", "shawn"]
You can’t perform that action at this time.