• Stars
    star
    539
  • Rank 81,814 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created over 13 years ago
  • Updated 4 months ago

Reviews

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

Repository Details

A Python client for statsd

A Python statsd client

statsd is a friendly front-end to Graphite. This is a Python client for the statsd daemon.

Latest CI status Latest release Supported Python versions Wheel Status
Code:https://github.com/jsocol/pystatsd
License:MIT; see LICENSE file
Issues:https://github.com/jsocol/pystatsd/issues
Documentation:https://statsd.readthedocs.io/

Quickly, to use:

>>> import statsd
>>> c = statsd.StatsClient('localhost', 8125)
>>> c.incr('foo')  # Increment the 'foo' counter.
>>> c.timing('stats.timed', 320)  # Record a 320ms 'stats.timed'.

You can also add a prefix to all your stats:

>>> import statsd
>>> c = statsd.StatsClient('localhost', 8125, prefix='foo')
>>> c.incr('bar')  # Will be 'foo.bar' in statsd/graphite.

Installing

The easiest way to install statsd is with pip!

You can install from PyPI:

$ pip install statsd

Or GitHub:

$ pip install -e git+https://github.com/jsocol/pystatsd#egg=statsd

Or from source:

$ git clone https://github.com/jsocol/pystatsd
$ cd pystatsd
$ python setup.py install

Docs

There are lots of docs in the docs/ directory and on ReadTheDocs.

More Repositories

1

django-ratelimit

Cache-based rate-limiting for Django
Python
1,046
star
2

django-adminplus

Easily add custom views to the Django admin.
Python
586
star
3

django-jsonview

Return Python objects, always get JSON.
Python
247
star
4

jingo-minify

Concat and minify JS and CSS for Jinja2+Jingo+Django
Python
67
star
5

django-cronjobs

A simple cron-running management command for Django
Python
55
star
6

oocurl

An Object-Oriented interface to PHP's cURL functions
PHP
31
star
7

sphinxapi

The Python client for Sphinx Search
Python
23
star
8

html5loopz

FruityLoops/FL Studio in HTML and JS.
JavaScript
19
star
9

logbot

An IRC logging bot for Node.js.
JavaScript
17
star
10

bitly-api-php

PHP
16
star
11

asteroids

Asteroids clone in JavaScript and Canvas.
JavaScript
14
star
12

jig

Jenkins-IRC-Github integration bot/server with some fancier features.
JavaScript
10
star
13

django-authority

Fork of a fork (Dan Fairs') of Jezdez's project
Python
8
star
14

pygotham-cd

Links to Tools I Talked About
7
star
15

dotfiles

My .dotfiles!
Ruby
6
star
16

dirk

Django to IRC bridge
Python
5
star
17

django-fail

Make your app fail!
5
star
18

yodawg

Directed Acyclic Word Graph implementation in C.
C
5
star
19

concurrency

some annotated examples of web server concurrency in python
Python
4
star
20

talks

slides from talks i've given
HTML
3
star
21

indirect3d

The worst pure-software 3D engine ever!
TypeScript
3
star
22

github-shortcuts

Firefox add-on to add some basic keyboard navigation to Github.
JavaScript
3
star
23

areyoudying.com

HTML
2
star
24

laundromat

Python
2
star
25

phake

Rake + ActiveRecord::Migration in PHP - Don't use but maybe interesting
PHP
2
star
26

jsocol.github.io

My site.
HTML
2
star
27

django-headegg

Python
2
star
28

xkcdbot

xkcdbot
JavaScript
2
star
29

joshua

Globally Distributed, Resilient File Serving
Python
2
star
30

insert-ad-code

WordPress plugin for inserting ads into posts
PHP
1
star
31

maveric

An old MVC framework in PHP—strongly recommend not using
PHP
1
star
32

recipes

Hmm.
1
star
33

poincare

draw a triangle on the Poincaré disc
JavaScript
1
star
34

shutdown

Wraps Go graceful shutdown boilerplate
Go
1
star
35

moodboard

Build mood boards with drag 'n' drop.
JavaScript
1
star
36

better-search-widget

A better search widget for Wordpress
PHP
1
star
37

monster

JavaScript
1
star
38

django-mq

Python
1
star
39

weft

Python
1
star
40

nextup.info

[sunset] Your Meeting. On Schedule.
CSS
1
star
41

Jetpacks

A repo to store my Jetpacks
1
star
42

ezgz

Wordpress plugin that gzips output
PHP
1
star
43

whattimeisitthere.info

JavaScript
1
star
44

most-comments-widget

A Wordpress widget showing the posts with the most comments.
PHP
1
star