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.14.1.tar.gz
(6.9 kB
view hashes)
Built Distribution
aiocarbon-0.14.1-py3-none-any.whl
(10.2 kB
view hashes)
Close
Hashes for aiocarbon-0.14.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f37eca35764ed9cc9bd9cb9974c5b2713f688b37ca2e132ce5239219e4a9cdfa |
|
MD5 | 2657e2dcaba8885d2057de4fc5c8a005 |
|
BLAKE2b-256 | 1816915fa89adedbbf28e58a653d9b18a3ec0a877d098b69a3ff21864e3c0ba4 |