Asynchronous client for carbon.


Keywords
aio, python, asyncio, carbon, graphite, client, pickle, tcp, udp
License
Apache-2.0
Install
pip install aiocarbon==0.15.3

Documentation

aiocarbon

Coveralls Travis CI Latest Version

Client for feeding data to graphite.

Example

Counter example:

import asyncio
import aiocarbon


async 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()