libstats Package

carbon_feeder Module

class cbtestlib.perf_engines.libstats.carbon_feeder.CarbonFeeder(host, port=2003, timeout=30, cache_size=10)
CACHE_SIZE = 10
CARBON_PORT = 2003
TIMEOUT = 30
feed(key, value, timestamp=0, caching=True)

feed a single message to carbon server @param: caching - True: add to cache, False: send immediately

flush()

carbon_key Module

class cbtestlib.perf_engines.libstats.carbon_key.CarbonKey(src, server, metric, cluster='', bucket='', vbucket='')

Optionally used by {@class: CarbonMessage}

pack()

carbon_msg Module

class cbtestlib.perf_engines.libstats.carbon_msg.CarbonMessage(key, value, timestamp=0)
pack()

Table Of Contents

Previous topic

libobserve Package

Next topic

remote Package

This Page