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.11.0.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for aiocarbon-0.11.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f600f28ade824d7d3600c66c63a22aa84576857dc43293619562ae32fba51d84 |
|
MD5 | 57d54a23a32fc1d2b9bb8d0d697c5779 |
|
BLAKE2b-256 | d6213e4b3cfaf8cadd6dd97ad3565082f15d525b0091ed534a936e1a02fed6c1 |