Skip to content

dalmatinerdb/node-dalmatiner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dalmatiner NPM version

Usage

Install the module with: npm install dalmatiner

Creating a client

var Dalmatiner = require('dalmatiner');
var conn = new Dalmatiner('tcp://localhost:5555', 'mybucket');

The client constructor takes three optional arguments.

connect_url

URI to the Dalmatiner backend server. For example: 'tcp://myserver:5555' or 'udp://myserver:4444'.

Default: 'tcp://127.0.0.1:5555'

bucket_name

The name of the data bucket.

Default: 'node-dalmatiner'

flush_interval

The connection flush interval of datapoints in a tcp stream.

Default: 5

Sending Data

.sendData takes 2 arguments. First is the composite key. Next is an array of one or more data values.

conn.sendData(['website', 'root', 'reponse_time'], [100]);
conn.sendData(['website', 'root', 'reponse_time'], [120, 300]);

License

MIT © 2015, Jón Grétar Borgþórsson

About

NodeJS client for DaltatinerDB.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%