dak.graph_new¶
Generate an HTML page and PNG charts wih the age of packages in NEW
To be run once a day.
The tool stores persistent status in the RRD database and the pickeled queue in order to speed up daily runs. Directories and database files are created as needed.
If the RRD directory is deleted the script rebuilds past years from the historical logs, and that can take a while, otherwise it just parses fresh data.
Functions
|
Verbose messages for debugging |
|
Extracts NEW queue events from log files |
|
Extract percentiles of package ages |
|
Generate png charts and index.html in the output directory |
|
Initialize empty RRD |
|
|
|
|
|
Process logged events like ACCEPT-TO-NEW, ACCEPT, REJECT and update the RRD database accordingly |
|
Skip files that are already processed |
|
|
|
Generates index.html page in the output directory |
- dak.graph_new.extract_queue_events(log_dir: str, last_update: Optional[datetime]) Iterator[tuple] [source]¶
Extracts NEW queue events from log files
- dak.graph_new.generate_output(rrdfn: str, out_dir: str, init_time) None [source]¶
Generate png charts and index.html in the output directory
- dak.graph_new.plot_graph(out_dir: str, fname: str, rrdfn: str, start, end: datetime, title: str) None [source]¶