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
Hashes for aiodogstatsd-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e91d610a40d5cb31ba9b0f86b00573164d075bd00f8c8239f5f1ef49445d4d67 |
|
MD5 | 93ee15dd85e8ce813649da88408d7f2c |
|
BLAKE2b-256 | 029b97250c19ca4721ca71faf771365297f5f87fafe4ef0d9a8f6b57ad10862d |