epicsarchiver.statistics.command

Command module for Archiver Statistics.

Attributes

LOG

ARCHIVER_ALIASES

Functions

stats(→ None)

Print out statistics from an archiver cluster.

ioc_check(→ None)

Print out statistics of a single IOC from an archiver cluster.

Module Contents

epicsarchiver.statistics.command.LOG: logging.Logger[source]
epicsarchiver.statistics.command.ARCHIVER_ALIASES = ['tn', 'nin', 'lab'][source]
epicsarchiver.statistics.command.stats(ctx: click.core.Context, limit: int, other_hostname: str | None, time_minimum: int, connection_drops_minimum: int, config_gitlab_repo: pathlib.Path | None, config_archiver_alias: str | None, mb_per_day_minimum: float, events_dropped_minimum: int, channelfinder: str, ioc: str | None, verbose: bool, output: pathlib.Path, debug: bool) None[source]

Print out statistics from an archiver cluster.

ARGUMENT output Where to print output detailed statistics.

Includes PVs that are often dropping events, long disconnected, producing no events and not configured. Example usage:

epicsarchiver --hostname archiver-01.example.com stats output.csv

By default produces a csv output in the form

IOC Name, IOC hostname, PV name, Statistic, Statistic Note IOC_NAME, PV:NAME, BufferOverflow, Dropped 33393 events by BufferOverflow

epicsarchiver.statistics.command.ioc_check(ctx: click.core.Context, ioc: str, config_gitlab_repo: pathlib.Path | None, config_archiver_alias: str | None, mb_per_day_minimum: float, channelfinder: str, debug: bool) None[source]

Print out statistics of a single IOC from an archiver cluster.

ARGUMENT IOC Name of IOC to check