Skip to main content

asyncio python client for telegraf / statsd / AWD cloudwatch

Project description

Build Status codecov PyPI GitHub

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

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

asynctelegraf-1.0.1.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asynctelegraf-1.0.1-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file asynctelegraf-1.0.1.tar.gz.

File metadata

  • Download URL: asynctelegraf-1.0.1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for asynctelegraf-1.0.1.tar.gz
Algorithm Hash digest
SHA256 08f7a2a3ea70fbc5c8c5ed12e4488d745cdc06615a425bf8daa3341cddc53fed
MD5 75b3374a687be3fbff07bbd9bd46dc52
BLAKE2b-256 082c8b544579e27c5aeb18e4a9dffd6ea6d1369e3616b6888de4c11a12293878

See more details on using hashes here.

File details

Details for the file asynctelegraf-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: asynctelegraf-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for asynctelegraf-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9fdd1a18c639b49e033d8dc259feb51679fa9273d6417edcea4e7dadb1b4956e
MD5 53b94af0c3813e45c1df33cc270a824b
BLAKE2b-256 a0f05d0d58af21139f93b47baefdfd30e118705367c455b5a6775ecdc06e08c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page