mentat.module.statistician module

This Mentat module is a script providing statistical functions and features for message processing performance analysis.

This script is implemented using the pyzenkit.zenscript framework and so it provides all of its core features. See the documentation for more in-depth details.

It is further based on mentat.script.fetcher module, which provides database fetching and message post-processing capabilities.

Usage examples

# Display help message and exit.
mentat-statistician.py --help

# Run in debug mode (enable output of debugging information to terminal).
mentat-statistician.py --debug

# Run with increased logging level.
mentat-statistician.py --log-level debug

Available script commands

calculate (default)

Calculate statistics for messages stored into database within configured time interval thresholds.

class mentat.module.statistician.MentatStatisticianScript[source]

Bases: FetcherScript

Implementation of Mentat module (script) providing statistical functions and features for message processing performance analysis.

CONFIG_REPORTS_DIR = 'reports_dir'
CONFIG_RRDS_DIR = 'rrds_dir'
CORECFG_STATISTICS = '__core__statistics'
cbk_command_calculate()[source]

Implementation of the calculate command (default).

Calculate statistics for messages stored into database within configured time interval thresholds.

get_default_command()[source]

Return the name of the default script command. This command will be executed in case it is not explicitly selected either by command line option, or by configuration file directive.

Returns

Name of the default command.

Return type

str