Skip to main content

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 and isort, you can run the formatters with tox -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.6.1.tar.gz (515.6 kB view hashes)

Uploaded Source

Built Distribution

statsd_python-0.6.1-py3-none-any.whl (11.0 kB view hashes)

Uploaded Python 3

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