eventsd-metric
v1.0.0
Published
eventsd metric protocol module
Downloads
1
Readme
eventsd-metric
A library for sending metrics with EventsD
Usage
var Metric = require('eventsd-metric');
var metric = new Metric();
// Returns a promise
metric.increment('my.metric', 1);
Methods
All methods of the Metric
class return a promise.
Several convience methods are available for specifiing the type of aggregation that should be used for a metric.
Methods:
increment
- simple counterdecrement
- simple countermin
max
mean
gauge
- last value wins (and persists)timing
- track mean, standard deviation, min, max, and countunique
- count of unique values
Options
See EventsD options
Environment Variables
See EventsD environment variables
Run Tests
npm test
====================
Author: Craig Thayer
License: ISC
See LICENSE for the full license text.