Project

General

Profile

action #127025

Updated by okurz over 1 year ago

## Motivation 

 In #121582 we added statistics from our backlog to Grafana: 
 * Ticket counts of the different backlog queries 
 * Cycle & lead times 

 The cycle and lead times are reported in a way that we can calculate the mean times, but not median. 
 It was requested that we support median. 
 Also it should be possible to feed data for a certain time frame to Grafana, e.g. when we change something in the calculation, or the Grafana database is gone, or we simply want to import historical data. Ideally this script can be used by other teams as well. 

 




 ## Acceptance criteria 
 * **AC1:** The script takes an option for a certain timeframe, but still reports data for the last day by default 
 * **AC2:** **AC1:** The script reports data for each individual ticket, so we can calculate the median in Grafana 

 ## Suggestions 
 * Extract the leadTime calculation from the [backlogger script](https://github.com/openSUSE/backlogger), because the original backlog status page script doesn't need this, and it will make it easier to add new options that don't make much sense for the backlogger

Back