oio.conscience.stats package

Submodules

oio.conscience.stats.base module

class oio.conscience.stats.base.BaseStat(agent, stat_conf, logger)[source]

Bases: object

Base class for all service statistics collectors.

configure()[source]

Configure the statistics collector.

get_stats()[source]

Actually collect the service statistics.

oio.conscience.stats.beanstalkd module

class oio.conscience.stats.beanstalkd.BeanstalkdStat(*args, **kwargs)[source]

Bases: oio.conscience.stats.base.BaseStat

Collect statistics about beanstalkd services.

beanstalkd
configure()[source]

Configure the statistics collector.

get_stats()[source]

Actually collect the service statistics.

stat_keys = {'current-jobs-buried': 'stat.jobs_buried', 'current-jobs-delayed': 'stat.jobs_delayed', 'current-jobs-ready': 'stat.jobs_ready', 'current-jobs-reserved': 'stat.jobs_reserved', 'current-jobs-urgent': 'stat.jobs_urgent', 'current-tubes': 'stat.tubes'}

oio.conscience.stats.http module

class oio.conscience.stats.http.HttpStat(agent, stat_conf, logger)[source]

Bases: oio.conscience.stats.base.BaseStat

Fetch stats using HTTP, expects one stat per line

configure()[source]

Configure the statistics collector.

get_stats()[source]

Actually collect the service statistics.

oio.conscience.stats.meta module

class oio.conscience.stats.meta.MetaStat(agent, stat_conf, logger)[source]

Bases: oio.conscience.stats.http.HttpStat

Fetch statistics from meta services using an HTTP request to the proxy. Expects one stat per line

configure()[source]

Configure the statistics collector.

get_stats()[source]

Actually collect the service statistics.

oio.conscience.stats.proxy module

class oio.conscience.stats.proxy.ProxyStat(agent, stat_conf, logger)[source]

Bases: oio.conscience.stats.http.HttpStat

Fetch metrics from oioproxy services using an HTTP request. Expect one stat per line.

configure()[source]

Configure the statistics collector.

get_stats()[source]

Actually collect the service statistics.

oio.conscience.stats.rawx module

class oio.conscience.stats.rawx.RawxStat(agent, stat_conf, logger)[source]

Bases: oio.conscience.stats.http.HttpStat

Specialization of HttpStat for rawx services

configure()[source]

Configure the statistics collector.

get_stats()[source]

Actually collect the service statistics.

rawx_stat_keys = [('counter', 'req.hits', 'stat.total_reqpersec'), ('counter', 'req.time', 'stat.total_avreqtime'), ('config', 'service_id', 'tag.service_id')]

oio.conscience.stats.system module

class oio.conscience.stats.system.SystemStat(agent, stat_conf, logger)[source]

Bases: oio.conscience.stats.base.BaseStat

Fetch stats from the system (e.g. CPU usage)

configure()[source]

Configure the statistics collector.

get_stats()[source]

Actually collect the service statistics.

oio_sys_cpu_idle = None

oio.conscience.stats.volume module

class oio.conscience.stats.volume.VolumeStat(agent, stat_conf, logger)[source]

Bases: oio.conscience.stats.base.BaseStat

Fetch stats from a local file system volume

configure()[source]

Configure the statistics collector.

get_stats()[source]

Actually collect the service statistics.

oio_sys_io_idle = None
oio_sys_space_idle = None

Module contents