HomeSoftware Heritage

Implement some basic aggregated metrics on listed origins

Description

Implement some basic aggregated metrics on listed origins

Metrics are computed and cached database-side by the update_metrics
function. The get_metrics function only retrieves the cached data.

The metrics are aggregated for each lister instance and visit type
(allowing complete reaggregation by visit type for cross-cutting statistics).

The following metrics have been implemented:

  • number of known origins overall
  • number of enabled origins (origins seen in the last listing)
  • number of enabled origins that have never been successfully visited
  • number of enabled origins with known activity since our last successful visit

Details

Provenance
olasdAuthored on Jan 19 2021, 2:23 PM
vlorentzCommitted on Jan 20 2021, 10:54 AM
vlorentzPushed on Jan 20 2021, 11:25 AM
Differential Revision
D4880: Implement some basic aggregated metrics on listed origins
Parents
rDSCH98526539a8e4: Import the journal subcommand in the main swh.scheduler cli
Branches
Unknown
Tags
Unknown
Build Status
Buildable 18517
Build 28643: test-and-buildJenkins console · Jenkins