• Stars
    star
    357
  • Rank 116,614 (Top 3 %)
  • Language
    Python
  • License
    BSD 2-Clause "Sim...
  • Created over 13 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python implementation of the Statsd client/server

Introduction

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.

pystatsd is tested on Python 2.7 and 3.8.

Status

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

lint_python

Usage

See statsd_test for sample usage:

from pystatsd import Client, Server

srvr = Server(debug=True)
srvr.serve()

sc = Client('example.org',8125)

sc.timing('python_test.time',500)
sc.increment('python_test.inc_int')   # or sc.incr()
sc.decrement('python_test.decr_int')  # or sc.decr()
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 pystatsd 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/pystatsd.conf and will read configuration variables from /etc/default/pystatsd. By default the pystatsd daemon runs as user 'nobody' which is a good thing from a security perspective.

Troubleshooting

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

More Repositories

1

node-statsd

node.js client for Etsy'd StatsD server
JavaScript
439
star
2

veloci-wiki

Notational Velocity and Github wiki Integration
Perl
17
star
3

node-short

url shortener for node.js
JavaScript
15
star
4

django-copyblock

Manage website copy as a directory of markdown-formatted files. Insert files as copy into your templates.
Python
14
star
5

statsd-client

Client for Etsy's statsd server
Perl
14
star
6

TinWhistle

A URl shortener loosely based on Tantek Γ‡elik's Whistle URL shortener.
Perl
6
star
7

makeitgoo

fledgling one-button deploy tool for... web applications
Python
6
star
8

sivy-emacs-toys

emacs additions, config, custom modes
Emacs Lisp
6
star
9

flask_activitypub

Playground activitypub implementation as a Flask extension
Python
5
star
10

boxpub

Personal Publishing from Dropbox.
Python
4
star
11

Salmon

A "lightweight, robust mechanism for digitally signing nearly arbitrary messages, along with a basic public key infrastructure for discovering the signing keys." An implementation of the Magic Signatures from the Salmon protocol. (See README)
Perl
4
star
12

mt-plugin-bad-robot

Bad Robot plugin for Movable Type and Melody: Selectively disallow robots from accessing blog content
3
star
13

idact-identity

identity server for idact experiments
Python
3
star
14

movable-type-plugin-debug

Adds built-in debug logging to Movable Type's Component.pm
Perl
3
star
15

mt-plugin-privatelabelfeed

Private Label Feed plugin for MovableType and Melody
Perl
2
star
16

node-oauth

Messing with oauth in node.js
JavaScript
2
star
17

python-dropbox

Fork of the Dropbox Python Client API
Python
2
star
18

monkinetic

monkinetic weblog source!
Ruby
2
star
19

mt-theme-sight

An MT port of the new Wordpress Sight template
2
star
20

whosays

random quote app for Google App Engine
2
star
21

idact-activity

identity-activity experiments
Python
1
star
22

gae-learning

GEA learnination
Python
1
star
23

goldfrog

Goldfrog, a shiny blog
Go
1
star
24

wallrazer.com

wallrazer website
Ruby
1
star
25

statsd-proxy

A HTTP proxy to Statsd
JavaScript
1
star