Node.js Statsd Client
Based on https://github.com/spreaker/nodejs-statsd-client but includes a way of interpreting dimensions that are not includes in the standard dot notation.
Metrics with dimensions get sent with this format:
some.metric?dimension1=abc1&other=test:1|c
How to install
npm install stats-client
How it works
var Client = require('stats-client')
var client = new Client("localhost:8125", { instance: 'i-12312' });
client.count("num_logged_users", 1, { tenant: 'some-id' });
client.increment("num_logged_users", { tenant: 'some-id' });
client.decrement("num_logged_users", { tenant: 'some-id' });
client.timing("request_ms", 250);
client.gauge("gauge_stats", 4);