A Python statsd client with prom/statsd-exporter compatible tag support |
---|
_This is a fork of statsd-telegraf which is a fork of pystatsd package._ |
statsd is a friendly front-end to Graphite. This is a Python client |
for the statsd daemon. More specifically, this is a fork of jsocol's |
pystatsd client, with the addition of support for DogTag-compatible |
tags. |
|
Quickly, to use: |
|
|
|
|
You can also add a prefix to all your stats: |
|
|
|
Datadog-compatible tags are supported, as well: |
|
|
|
|
Installing |
The easiest way to install statsd is with pip!
You can install from PyPI:
$ pip install statsd-exporter
Or GitHub:
$ pip install -e git+https://github.com/openmotics/statsd-exporter#egg=statsd-exporter
Or from source:
$ git clone https://github.com/openmotics/statsd-exporter
$ cd statsd-exporter
$ python setup.py install