0.2.3 • Published 10 years ago

outflux v0.2.3

Weekly downloads
1
License
MIT
Repository
-
Last release
10 years ago

outflux

Build Status

Hapi plugin for sending metrics to InfluxDB.

Overview

npm install outflux

outflux provides the ability to send metrics to InfluxDB from Hapi plugins.

exports.register = function (plugin, options, done) {
	. . .
	plugin.plugins.outflux.point("metric", { a : 1, b : 2 });
	. . .
};

Configuration

The outflux plugin can be configured with the following options:

namerequireddescription
urlyesThe Influx series URL.

The series URL should be the fully qualified URL (including the username and password) as specified in the InfluxDB documentation. For example http://example.com/db/somedb/series?u=username&p=password.

API

outflux.point (type, data)

parameterdescription
typeThe type of point to create.
dataThe data point.

Creates a new data point. The data object is a standard JavaScript object. The key names are used as the column names for the point. Points are batched on one second intervals to improve performance. Returns a promise that is resolved or rejected when the point is actually sent to the server depending on whether or not the request was successful.

0.2.3

10 years ago

0.2.2

10 years ago

0.2.0

10 years ago

0.2.1

10 years ago

0.1.0

10 years ago

0.0.2

10 years ago