No project description provided
Project description
Python Statsd Client
:construction: WIP :construction:
This is an implementation of a Statsd client for Python.
For usage see documentation.
Motivation
I was looking for a generic Statsd client with tags support to interact with various statsd servers for an application that I distribute but don't operate, so there could be high variability in the statsd implementations used (I know one uses Telegraf and InfluxDB and one Datadog and they both have different tag formats).
pystatsd
exists and works, but it intentionally does not support tags.- The docs point to an alternative supporting tags, but at the time of writing the repository leads to a 404 for me.
- There a are a few more available on PyPi that likely work, but most of the ones I've checked haven't been updated in a while, are not documented and don't support tags.
datadogpy
could be a solid solution, but I'd rather avoind pulling the full Datadog client library in projects where I don't use datadog. It also exposes some non standard metric types, and while I can always not use them I'd prefer a generic solution (ignoring tags which, while not standardized, are supported by most statsd servers).
Development
- All development dependencies are defined in requirements-dev.txt.
- All tests and linting steps are defined in tox.ini, you can run the all the checks with
tox
. - Code is expected to be formatted with
black
andisort
, you can run the formatters withtox -e fmt
.
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_python-0.4.0.tar.gz
(19.3 kB
view hashes)
Built Distribution
Close
Hashes for statsd_python-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7891730475a1be609c083cc7b1aa72452309d16a7c6eb0240c2583946ee4e31 |
|
MD5 | 9e3c59edbac6522c05dad4aad8444f49 |
|
BLAKE2b-256 | 50973c331a67b5a5dfe0fa77f48168b0659008d9106adb128ea975b43e30d57e |