MiniStatsD: A simple StatsD client in Ruby

First, if you don't know what StatsD is, here's a short summary extracted from the StatsD repository page:

A network daemon that runs on the Node.js platform and listens for statistics, like counters and timers, sent over UDP or TCP and sends aggregates to one or more pluggable backend services (e.g., Graphite).

StatsD can be used to extract a bunch of metrics stablished by you, the developer, to any compatible server or service like Datadog, for instance.

But while running your app on development, you may want to see some metrics comming and going live.

With this in mind, I created MiniStatsd. It's is a simple and lightweight implementation of a StatsD client in ruby and can be installed without Node.js or any other javascript dependencies. It has the only purpose of seeing what kind of metrics your app is sending.

running MiniStatsD is just this easy :)

The setup is ridiculously easy (if you already have ruby installed):

$ gem install mini_statsd
$ bundle install

And running is even easier:

$ mini_statsd <port or leave it blank for default>

Set your StatsD emitter to point to the same port where mini_statsd is running and bang!


This project is still in development and some new features are planned (like a small web client with some stats).

You can check the source code and contribute on the page of the project on GitHub :)