asynctelegraf
Asyncio python client for Telegraf, compatible with AWS cloudwatch metrics (statsd)
Install
pip install asynctelegraf
Example
import asyncio
from asynctelegraf import TelegrafClient
telegraf = TelegrafClient(host='127.0.0.1', port=8125, batch_size=100)
@telegraf.timed('magic.time', use_ms=True)
async def do_some_magic():
await asyncio.sleep(3.3)
return 'Magic'
async def main():
async with telegraf.start():
res = await do_some_magic()
print("result", res)
asyncio.run(main())
Contributions
If you have found a bug or have some idea for improvement feel free to create an issue or pull request.
License
Apache 2.0
Metadata
Release files for asynctelegraf 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| asynctelegraf-1.0.1.tar.gz | 14.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asynctelegraf-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.0 kB
Release files / asynctelegraf-1.0.1.tar.gz
| Download URL | asynctelegraf-1.0.1.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08f7a2a3ea70fbc5c8c5ed12e4488d745cdc06615a425bf8daa3341cddc53fed
|
|
BLAKE2b-256 checksum How to use checksums |
082c8b544579e27c5aeb18e4a9dffd6ea6d1369e3616b6888de4c11a12293878
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / asynctelegraf-1.0.1-py3-none-any.whl
| Download URL | asynctelegraf-1.0.1-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fdd1a18c639b49e033d8dc259feb51679fa9273d6417edcea4e7dadb1b4956e
|
|
BLAKE2b-256 checksum How to use checksums |
a0f05d0d58af21139f93b47baefdfd30e118705367c455b5a6775ecdc06e08c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|