Summary
Add a stats subcommand to both the executions and datasets CLI groups to provide a quick operational overview of the current state of the database.
Motivation
Currently, understanding the state of executions or datasets requires eyeballing list-groups or list output. A summary command would give operators a quick dashboard view, especially useful when monitoring long-running evaluation campaigns.
Proposed Commands
ref executions stats
Show counts of executions grouped by status and provider/diagnostic:
Provider Running Failed Successful Not Started Dirty
pmp 2 3 45 0 1
esmvaltool 0 1 32 5 5
ilamb 1 0 18 2 0
Should support the same --diagnostic and --provider filters as list-groups.
ref datasets stats
Show counts of datasets grouped by dataset type, with breakdowns by key facets (e.g., source_id, experiment_id):
Dataset Type Count Finalised Unfinalised
cmip6 234 180 54
obs4mips 12 12 0
Acceptance Criteria
Summary
Add a
statssubcommand to both theexecutionsanddatasetsCLI groups to provide a quick operational overview of the current state of the database.Motivation
Currently, understanding the state of executions or datasets requires eyeballing
list-groupsorlistoutput. A summary command would give operators a quick dashboard view, especially useful when monitoring long-running evaluation campaigns.Proposed Commands
ref executions statsShow counts of executions grouped by status and provider/diagnostic:
Should support the same
--diagnosticand--providerfilters aslist-groups.ref datasets statsShow counts of datasets grouped by dataset type, with breakdowns by key facets (e.g., source_id, experiment_id):
Acceptance Criteria
ref executions statsshows per-provider counts of running/failed/successful/not-started/dirtyref datasets statsshows per-dataset-type counts with finalisation status--provider,--diagnostic, etc.)