New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

outflux

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

outflux

Hapi plugin for sending metrics to InfluxDB.

latest
npmnpm
Version
0.2.3
Version published
Maintainers
1
Created
Source

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.

Keywords

hapi

FAQs

Package last updated on 18 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts