Asynchronous client for carbon.
Project description
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()
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
aiocarbon-0.12.0.tar.gz
(6.7 kB
view hashes)
Built Distribution
aiocarbon-0.12.0-py3-none-any.whl
(10.0 kB
view hashes)
Close
Hashes for aiocarbon-0.12.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e44dbd2b11274e7f443ec7aa4baf3fd0b773abd08f6a58cfde30d90e7256f3d9 |
|
MD5 | a8999ecf3514215258db62bbc47ca917 |
|
BLAKE2b-256 | 0c4e0c5239f761f7ba7136c15e6f8275930f6c6bc0396c4e97e7b56ed7fe938d |