Skip to content
Snippets Groups Projects
Commit 211d20b5 authored by Jan David Mol's avatar Jan David Mol
Browse files

Also add station name to total scraping duration

parent faef01aa
No related branches found
No related tags found
No related merge requests found
......@@ -208,7 +208,7 @@ class CustomCollector(object):
scrape_end = time.time()
logger.info(f"Done scraping. Took {scrape_end - scrape_begin} seconds.")
scraping_metrics.add_metric(["total"], scrape_end - scrape_begin)
scraping_metrics.add_metric([self.station, "total"], scrape_end - scrape_begin)
yield attribute_metrics
yield scraping_metrics
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment