Skip to content

Commit

Permalink
Merge pull request #4 from jdburton/master
Browse files Browse the repository at this point in the history
Changes to grafana page and add timeout to scraper
  • Loading branch information
twstokes authored Jan 28, 2022
2 parents 4f66ab4 + 571f013 commit 4e54d1d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
18 changes: 13 additions & 5 deletions full-service/grafana_dashboards/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,11 @@
},
{
"params": [],
"type": "mean"
"type": "last"
},
{
"params": [],
"type": "non_negative_difference"
}
]
],
Expand Down Expand Up @@ -526,7 +530,7 @@
"label": null,
"logBase": 1,
"max": null,
"min": null,
"min": "0",
"show": true
},
{
Expand Down Expand Up @@ -630,7 +634,11 @@
},
{
"params": [],
"type": "mean"
"type": "last"
},
{
"params": [],
"type": "non_negative_difference"
}
]
],
Expand Down Expand Up @@ -661,7 +669,7 @@
"label": null,
"logBase": 1,
"max": null,
"min": null,
"min": "0",
"show": true
},
{
Expand Down Expand Up @@ -898,4 +906,4 @@
"title": "Modem",
"uid": "KRgNDKwMz",
"version": 11
}
}
4 changes: 2 additions & 2 deletions scraper/downloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit 4e54d1d

Please sign in to comment.