node-accountant
A dead simple to use metrics tracker for node.js http services, it optionally sends data to statsD, or simply prints on stdout.
npm install accountant
The goal of this project is to be a simple to use reponse time metrics tracker for http services. Instead of polluting your application code with metric code, you can use this lib as a high level middleware if it fits your needs.
Examples
stdout
const ac = ;app; // GET.foo.bar - 4.153 msapp;
statsd
const ac = ;const statsdInfo =host: 'localhost'port: '9988'// will send statsd info in the following format GET.foo.bar// statsd.timing('GET.foo.bar', responseTime)app;app;app;
simple middleware callback
const ac = ;// will send statsd info in the following format GET.endpoint.actionapp;app;app;