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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 143c4d7f5264dcabc74a4fbc3d77c72545be125b51a6e5df0afb763cfaaaa71f |
|
MD5 | 2fcd57b8586caeea828fbb8afcccbadd |
|
BLAKE2b-256 | 16d5056d6114725f837302a5fd008fa6b7f548bf9d5cd1a0aee4b71b728f01b7 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e91d610a40d5cb31ba9b0f86b00573164d075bd00f8c8239f5f1ef49445d4d67 |
|
MD5 | 93ee15dd85e8ce813649da88408d7f2c |
|
BLAKE2b-256 | 029b97250c19ca4721ca71faf771365297f5f87fafe4ef0d9a8f6b57ad10862d |