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.15.0.tar.gz
(7.3 kB
view hashes)
Built Distribution
aiocarbon-0.15.0-py3-none-any.whl
(18.9 kB
view hashes)
Close
Hashes for aiocarbon-0.15.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e92336d35c7aec29f10ee15f79ceea93b0f5d491061f05e441c88d23191d0e8 |
|
MD5 | 95cb0ad53217d5c507ea87e325794a19 |
|
BLAKE2b-256 | fc6b7a80b5978502ac7bdeea0e8f84432e1c2b85c6b834a967cb7e60e1252f8a |