Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

pystatsd is a client for Etsy's statsd server, a front end/proxy for the Graphite stats collection and graphing server.

Project description


**pystatsd** is a client and server implementation of Etsy's brilliant statsd
server, a front end/proxy for the Graphite stats collection and graphing server.

* Graphite
* Statsd
- code:
- blog post:

**pystatsd** has [been tested on]( python 2.5, 2.6, and 2.7.


Reviewing and merging pull requests, bringing stuff up to date, now with tests!

[![Build Status](](


See statsd_test for sample usage:

from pystatsd import Client, Server

srvr = Server(debug=True)

sc = Client('',8125)

sc.gauge('python_test.gauge', 42)

Building a Debian Package

To build a debian package, run `dpkg-buildpackage -rfakeroot`

Upstart init Script
Upstart is the daemon management system for Ubuntu.

A basic upstart script has been included for the pystatd server. It's located
under init/, and will be installed to /usr/share/doc if you build/install a
.deb file. The upstart script should be copied to /etc/init/pystatd.conf and
will read configuration variables from /etc/default/pystatd. By default the
pystatd daemon runs as user 'nobody' which is a good thing from a security


You can see the raw values received by pystatsd by packet sniffing:

$ sudo ngrep -qd any . udp dst port 8125

You can see the raw values dispatched to carbon by packet sniffing:

$ sudo ngrep -qd any stats tcp dst port 2003

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pystatsd-0.1.10.tar.gz (11.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page