Skip to main content

A simple statsd client.

Project description

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

Travis-CI build 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 statsd
$ python setup.py install

Docs

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

Project details


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 details)

Uploaded Source

Built Distribution

statsd-3.3.0-py2.py3-none-any.whl (12.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file statsd-3.3.0.tar.gz.

File metadata

  • Download URL: statsd-3.3.0.tar.gz
  • Upload date:
  • Size: 259.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for statsd-3.3.0.tar.gz
Algorithm Hash digest
SHA256 e3e6db4c246f7c59003e51c9720a51a7f39a396541cb9b147ff4b14d15b5dd1f
MD5 b397ccf880f37cf099e775907ebf7a46
BLAKE2b-256 2df248ffc8d0051849e4417e809dc9420e76084c8a62749b3442915402127caa

See more details on using hashes here.

Provenance

File details

Details for the file statsd-3.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: statsd-3.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for statsd-3.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c610fb80347fca0ef62666d241bce64184bd7cc1efe582f9690e045c25535eaa
MD5 eb331c51a939f0d9eae01f321bb7e87a
BLAKE2b-256 4733c824f799128dfcfce2142f18d9bc6c55c46a939f6e4250639134222d99eb

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page