Skip to main content

An asyncio-based client for sending metrics to StatsD with support of DogStatsD extension

Project description

aiodogstatsd

An asyncio-based client for sending metrics to StatsD with support of DogStatsD extension.

Library fully tested with statsd_exporter and supports gauge, counter, histogram, distribution and timing types.

Installation

$ pip install aiodogstatsd

Usage

import asyncio

import aiodogstatsd


async def main():
    client = aiodogstatsd.Client()
    await client.connect()

    client.increment("users.online")

    await client.close()


asyncio.run(main())

Look at examples/ to find more examples of library usage.

Contributing

To work on the aiodogstatsd codebase, you'll want to clone the project locally and install the required dependencies via poetry:

$ git clone git@github.com:Gr1N/aiodogstatsd.git
$ poetry install

To run tests and linters use command below:

$ poetry run tox

If you want to run only tests or linters you can explicitly specify which test environment you want to run, e.g.:

$ poetry run tox -e py37-tests

License

aiodogstatsd is licensed under the MIT license. See the license file for details.

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

aiodogstatsd-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

aiodogstatsd-0.1.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file aiodogstatsd-0.1.0.tar.gz.

File metadata

  • Download URL: aiodogstatsd-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.11 CPython/3.7.2 Linux/4.15.0-1028-gcp

File hashes

Hashes for aiodogstatsd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 143c4d7f5264dcabc74a4fbc3d77c72545be125b51a6e5df0afb763cfaaaa71f
MD5 2fcd57b8586caeea828fbb8afcccbadd
BLAKE2b-256 16d5056d6114725f837302a5fd008fa6b7f548bf9d5cd1a0aee4b71b728f01b7

See more details on using hashes here.

File details

Details for the file aiodogstatsd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: aiodogstatsd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.11 CPython/3.7.2 Linux/4.15.0-1028-gcp

File hashes

Hashes for aiodogstatsd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e91d610a40d5cb31ba9b0f86b00573164d075bd00f8c8239f5f1ef49445d4d67
MD5 93ee15dd85e8ce813649da88408d7f2c
BLAKE2b-256 029b97250c19ca4721ca71faf771365297f5f87fafe4ef0d9a8f6b57ad10862d

See more details on using hashes here.

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