1.0.1 • Published 3 years ago

statsd-client-cached v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

statsd-client-cached

NPM version Dependencies

This is a wrapper for statsd-client, which aggregates values and changes for a specific interval and sends them to statsd only (at most) once every interval.

Usage

It is initialized and used exaclty like statsd-client, with an additional flushInterval option (default: 10).

const SDC = require('statsd-client-cached')

const sdc = new SDC({
  host: 'statsd.example.com',
  port: 8124,
  flushInterval: 10000 // default: 10 seconds
})

Notes

Aggragation and delaying affects increments/decrements (counters) and gauges. Timers and histograms are sent immediately (as there is no aggregation for these).

License

MIT

1.0.1

3 years ago

1.0.0

5 years ago

0.1.0

7 years ago

0.0.1

8 years ago