From 9e1a7cb6f01076dbbb78e175364689bddc7f0a7c Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Wed, 17 Jan 2018 11:15:21 -0800 Subject: [PATCH] include RunningStats raw stats in status info --- warcprox/warcproxy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/warcprox/warcproxy.py b/warcprox/warcproxy.py index b2ac69e..7bccba7 100644 --- a/warcprox/warcproxy.py +++ b/warcprox/warcproxy.py @@ -421,6 +421,9 @@ class SingleThreadedWarcProxy(http_server.HTTPServer, object): 'queued_urls': self.recorded_url_q.qsize(), 'queue_max_size': self.recorded_url_q.maxsize, 'seconds_behind': self.recorded_url_q.seconds_behind(), + 'urls_processed': self.running_stats.urls, + 'warc_bytes_written': self.running_stats.warc_bytes, + 'start_time': self.running_stats.first_snap_time, }) elapsed, urls_per_sec, warc_bytes_per_sec = self.running_stats.current_rates(1) result['rates_1min'] = {