A simple statsd client.
Project description
statsd is a friendly front-end to Graphite. This is a Python client for the statsd daemon.
- Code:
- License:
MIT; see LICENSE file
- Issues:
- Documentation:
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 statsd $ python setup.py install
Docs
There are lots of docs in the docs/ directory and on ReadTheDocs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
statsd-3.3.0.tar.gz
(259.0 kB
view hashes)
Built Distribution
statsd-3.3.0-py2.py3-none-any.whl
(12.0 kB
view hashes)
Close
Hashes for statsd-3.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c610fb80347fca0ef62666d241bce64184bd7cc1efe582f9690e045c25535eaa |
|
MD5 | eb331c51a939f0d9eae01f321bb7e87a |
|
BLAKE2b-256 | 4733c824f799128dfcfce2142f18d9bc6c55c46a939f6e4250639134222d99eb |