https://github.com/mosquito/aiocarbon
Asynchronous client for carbon.
https://github.com/mosquito/aiocarbon
asyncio carbon graphite pickle tcp udp
Last synced: 6 months ago
JSON representation
Asynchronous client for carbon.
- Host: GitHub
- URL: https://github.com/mosquito/aiocarbon
- Owner: mosquito
- License: other
- Created: 2018-01-28T17:40:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-09-21T14:22:31.000Z (about 2 years ago)
- Last Synced: 2025-03-23T19:22:22.538Z (7 months ago)
- Topics: asyncio, carbon, graphite, pickle, tcp, udp
- Language: Python
- Size: 58.6 KB
- Stars: 3
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
aiocarbon
=========.. image:: https://coveralls.io/repos/github/mosquito/aiocarbon/badge.svg?branch=master
:target: https://coveralls.io/github/mosquito/aiocarbon
:alt: Coveralls.. image:: https://travis-ci.org/mosquito/aiocarbon.svg
:target: https://travis-ci.org/mosquito/aiocarbon
:alt: Travis CI.. image:: https://img.shields.io/pypi/v/aiocarbon.svg
:target: https://pypi.python.org/pypi/aiocarbon/
:alt: Latest Version.. image:: https://img.shields.io/pypi/wheel/aiocarbon.svg
:target: https://pypi.python.org/pypi/aiocarbon/.. image:: https://img.shields.io/pypi/pyversions/aiocarbon.svg
:target: https://pypi.python.org/pypi/aiocarbon/.. image:: https://img.shields.io/pypi/l/aiocarbon.svg
:target: https://pypi.python.org/pypi/aiocarbon/Client for feeding data to graphite.
Example
-------Counter example:
.. code-block:: python
import asyncio
import aiocarbonasync def main(loop):
aiocarbon.setup(
host="127.0.0.1", port=2003, client_class=aiocarbon.TCPClient
)for _ in range(1000):
with aiocarbon.Counter("foo"):
await asyncio.sleep(0.1)if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main(loop))
loop.close()