kdb.plugins.stats module

Statistics

This plugin collects various statistics and allows the user to access and display them.

class kdb.plugins.stats.Commands(*args, **kwargs)

Bases: circuits.core.components.Component

channel = 'commands'
cstats(source, target, args)

Display command usage stats

Syntax: CSTATS

errors(source, target, args)

Display number of errors that have occured

Syntax: ERRORS

graph(source, target, args)

Display graph structure of the system

Syntax; GRAPH

inspect(source, target, args)

Display an inspection report of the system

Syntax; INSPECT

mstats(source, target, args)

Display current memory stats

Syntax: MSTATS

nstats(source, target, args)

Display current network stats

Syntax: NSTATS

uptime(source, target, args)

Display current uptime and cpu usage

Syntax: UPTIME

version(source, target, args)

Display version information

Syntax: VERSION

class kdb.plugins.stats.Stats(*args, **kwargs)

Bases: kdb.plugin.BasePlugin

Statistics plugin

Provides various statistical functions and information. Namely, network, uptime and error stats. See: commands stats

init(*args, **kwargs)

This Page