Module Import alias Import alias Import alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Global identifier Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareGt SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Global identifier Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Call NameLoad Assert CompareIn Str NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call AttributeLoad Call NameLoad attr Str Assert CompareIn Str NameLoad Assert CompareLtE Call NameLoad BinOpSub SubscriptLoad NameLoad Index Str BinOpMult NameLoad SubscriptLoad NameLoad Index Str Num TupleLoad SubscriptLoad NameLoad Index Str BinOpMult NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Dict Assert CompareIn Str NameLoad Assert CompareNotIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Global identifier Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Dict If Call AttributeLoad NameLoad attr body Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str For NameStore NameLoad body If BoolOpAnd CompareEq NameLoad Str CompareEq SubscriptLoad NameLoad Index Str Num body Continue Assert CompareIn NameLoad NameLoad NameLoad Assert CompareEq SubscriptLoad NameLoad Index Str BinOpAdd SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assert CompareEq SubscriptLoad NameLoad Index Str BinOpAdd SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse If CompareEq AttributeLoad NameLoad attr Str body For NameStore TupleLoad Str Str Str Str body Assert CompareIn NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Global identifier Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad For NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str body Expr Call AttributeLoad NameLoad attr CompareIn NameLoad SubscriptLoad NameLoad Index Str BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad For NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str body Expr Call AttributeLoad NameLoad attr CompareIn NameLoad SubscriptLoad NameLoad Index Str BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Dict Str Call NameLoad BinOpMult Num BinOpPow Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Dict Str Call NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr Assert CompareIn Str NameLoad Assert CompareIn Str NameLoad If Call AttributeLoad NameLoad attr body Assert CompareIn Str NameLoad Assert CompareIn Str NameLoad Assert CompareIn Str NameLoad orelse If Call AttributeLoad NameLoad attr body Assert CompareIn Str NameLoad Assert CompareIn Str NameLoad Assert CompareIn Str NameLoad decorator_list decorator_list
N/A N/A logging N/A sys N/A unittest checks.system.unix IO Load Memory System config get_system_stats tests.checks.common get_check utils.platform Platform N/A N/A N/A logging basicConfig level N/A logging DEBUG N/A logger N/A N/A logging getLogger __file__ TestSystem N/A N/A unittest TestCase N/A testUptime N/A N/A self N/A N/A N/A logger N/A system N/A System logger N/A metrics N/A N/A system check N/A N/A N/A N/A self assertTrue N/A system.uptime metrics N/A N/A N/A self assertTrue N/A N/A metrics N/A system.uptime 0 N/A testLoad N/A N/A self N/A N/A N/A logger N/A load N/A Load logger N/A res N/A N/A load check N/A system_stats N/A get_system_stats N/A N/A system.load.1 res N/A N/A N/A Platform is_linux N/A N/A cores N/A int N/A N/A N/A get_system_stats get cpuCores N/A N/A system.load.norm.1 res N/A N/A N/A abs N/A N/A res N/A system.load.1 N/A cores N/A res N/A system.load.norm.1 0.1 N/A N/A res N/A system.load.1 N/A cores N/A res N/A system.load.norm.1 N/A res N/A N/A load check N/A N/A N/A system.load.1 res N/A N/A system.load.norm.1 res N/A testMemory N/A N/A self N/A N/A N/A logger N/A res N/A N/A N/A Memory logger check N/A N/A N/A N/A Platform is_linux N/A N/A MEM_METRICS N/A swapTotal swapFree swapPctFree swapUsed physTotal physFree physUsed physBuffers physCached physUsable physPctUsable physShared N/A k MEM_METRICS N/A N/A N/A N/A k swapPctFree N/A N/A res N/A swapTotal 0 N/A N/A N/A N/A k res res N/A N/A N/A res N/A swapTotal N/A N/A res N/A swapFree N/A res N/A swapUsed N/A N/A N/A res N/A physTotal N/A N/A res N/A physFree N/A res N/A physUsed N/A N/A N/A N/A sys platform darwin N/A N/A k N/A swapFree swapUsed physFree physUsed N/A N/A N/A k res res N/A testDiskLatency N/A N/A self N/A N/A N/A debian_iostat_output Linux 3.2.0-2-amd64 (fireflyvm)   05/29/2012  _x86_64_    (2 CPU)

Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
sda               0.44     2.58    5.79    2.84   105.53   639.03   172.57     0.17   19.38    1.82   55.26   0.66   0.57

Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
sda               0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00

 N/A logger N/A checker N/A IO logger N/A results N/A N/A checker _parse_linux2 debian_iostat_output N/A N/A N/A self assertTrue N/A sda results N/A key N/A rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util N/A N/A N/A N/A self assertTrue N/A key N/A results N/A sda N/A key %r not in results["sda"] key N/A N/A N/A self assertEqual N/A N/A results N/A sda N/A key 0.00 N/A centos_iostat_output Linux 2.6.18-308.el5 (localhost.localdomain)  05/29/2012

Device:         rrqm/s   wrqm/s   r/s   w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await  svctm  %util
sda               9.44     7.56 16.76  4.40   322.05    47.75    34.96     0.01    0.59   0.35   0.74

Device:         rrqm/s   wrqm/s   r/s   w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await  svctm  %util
sda               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00

 N/A checker N/A IO logger N/A results N/A N/A checker _parse_linux2 centos_iostat_output N/A N/A N/A self assertTrue N/A sda results N/A key N/A rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util N/A N/A N/A N/A self assertTrue N/A key N/A results N/A sda N/A key %r not in results["sda"] key N/A N/A N/A self assertEqual N/A N/A results N/A sda N/A key 0.00 N/A darwin_iostat_output           disk0           disk1
    KB/t tps  MB/s     KB/t tps  MB/s
   21.11  23  0.47    20.01   0  0.00
    6.67   3  0.02     0.00   0  0.00
 N/A checker N/A IO logger N/A results N/A N/A checker _parse_darwin darwin_iostat_output N/A N/A N/A self assertTrue N/A disk0 N/A N/A results keys N/A N/A N/A self assertTrue N/A disk1 N/A N/A results keys N/A N/A N/A self assertEqual N/A results N/A disk0 N/A system.io.bytes_per_s N/A float N/A 0.02 N/A 10 6 N/A N/A N/A self assertEqual N/A results N/A disk1 N/A system.io.bytes_per_s N/A float 0 N/A testNetwork N/A N/A self N/A N/A N/A config 
init_config:

instances:
    - collect_connection_state: false
      excluded_interfaces:
        - lo
        - lo0
 N/A N/A check instances N/A get_check network config N/A N/A N/A check check N/A instances N/A 0 N/A N/A N/A check get_metrics N/A metric_names N/A N/A m N/A 0 N/A m N/A N/A check aggregator metrics N/A N/A system.net.bytes_rcvd metric_names N/A N/A system.net.bytes_sent metric_names N/A N/A N/A Platform is_linux N/A N/A N/A system.net.tcp.retrans_segs metric_names N/A N/A system.net.tcp.in_segs metric_names N/A N/A system.net.tcp.out_segs metric_names N/A N/A N/A N/A Platform is_bsd N/A N/A N/A system.net.tcp.retrans_packs metric_names N/A N/A system.net.tcp.sent_packs metric_names N/A N/A system.net.tcp.rcv_packs metric_names N/A N/A