@sandjs/metric
v1.0.1
Published
Metrics Inteface to metric services
Readme
sand-metric
A Sand Grain for connecting to your metric library and standardizing events to send
Usage
sand.metric.increment('my.metric');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 counterminmaxmeangauge- last value wins (and persists)timing- track mean, standard deviation, min, max, and countunique- count of unique values
Metric Libraries
The only tested libraries:
