Marco Pracucci

Statsd Client for Node.js

by Marco Pracucci Comments

Few years ago I released a very simple yet working Statsd client for Node.js and I recently realized that it’s actually pretty used (2,989 downloads in the last month). We, at Spreaker, use it since few years in production and never got an issue.

Do you wanna give it a try?
npm install node-statsd-client

How it works

var Client = require('node-statsd-client').Client;

var client = new Client("localhost", 8192);

// Count stat
client.count("num_logged_users", 1);
client.increment("num_logged_users");
client.decrement("num_logged_users");

// Timing stat
client.timing("request_ms", 250);

// Gauge stat
client.gauge("gauge_stats", 4);

RSS Feed

To get a notification each time a new article gets published, type the following command on your Slack: /feed subscribe https://pracucci.com/feed.xml

Comments