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);

Upcoming conferences

I will join the following conferences. Reach me out on Twitter if you wanna meet:
FOSDEM Bruxelles 02 February 2019 until 03 February 2019
KubeCon Europe Barcelona 20 May 2019 until 23 May 2019

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