diff --git a/full-service/grafana_dashboards/default.json b/full-service/grafana_dashboards/default.json index bb1abcb..b17ab28 100644 --- a/full-service/grafana_dashboards/default.json +++ b/full-service/grafana_dashboards/default.json @@ -495,7 +495,11 @@ }, { "params": [], - "type": "mean" + "type": "last" + }, + { + "params": [], + "type": "non_negative_difference" } ] ], @@ -526,7 +530,7 @@ "label": null, "logBase": 1, "max": null, - "min": null, + "min": "0", "show": true }, { @@ -630,7 +634,11 @@ }, { "params": [], - "type": "mean" + "type": "last" + }, + { + "params": [], + "type": "non_negative_difference" } ] ], @@ -661,7 +669,7 @@ "label": null, "logBase": 1, "max": null, - "min": null, + "min": "0", "show": true }, { @@ -898,4 +906,4 @@ "title": "Modem", "uid": "KRgNDKwMz", "version": 11 -} \ No newline at end of file +} diff --git a/scraper/downloaders.py b/scraper/downloaders.py index 9326f36..abd2751 100644 --- a/scraper/downloaders.py +++ b/scraper/downloaders.py @@ -28,8 +28,8 @@ class RequestsDownloader(Downloader): """ @staticmethod def download(url): - result = requests.get(url) - + result = requests.get(url,timeout=10) + if result.status_code != 200: raise Exception("Received non-200 response.")