node-stats-aggregator

0.0.7 • Public • Published

node-stats-aggregator

A stats aggregator for NodeJS with a pluggable output system.

Usage

const StatsAggregator = require('node-stats-aggregator');
const agg = new StatsAggregator('my-aggregator', ['key1', 'key2'], ['val1','val2','val3']);

API

StatsAggregator

//adding output plugins 
agg.plugins.add(new OutputPlugin());

OutputPlugin

Output Plugins

MySql

const mysqlOutput = new StatsAggregator.MysqlOutputPlugin({
    keyFields: ['key1', 'key2'],
    valueFields: ['val1','val2','val3'],
    client: mysqlClient
});

StatsD

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.70latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.70
0.0.60
0.0.56
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i node-stats-aggregator

Weekly Downloads

6

Version

0.0.7

License

ISC

Unpacked Size

9.43 kB

Total Files

8

Last publish

Collaborators

  • eran.betzalel
  • moshewe