Skip to content

Commit

Permalink
Merge pull request #2183 from gphat/cory-goexpvar-timeout
Browse files Browse the repository at this point in the history
Add timeout for requests to get go expvar metrics.
  • Loading branch information
Remi Hakim committed Jan 7, 2016
2 parents 2cbaf2d + c731b31 commit 48b9f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks.d/go_expvar.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, name, init_config, agentConfig, instances=None):
self._last_gc_count = defaultdict(int)

def _get_data(self, url):
r = requests.get(url)
r = requests.get(url, timeout=10)
r.raise_for_status()
return r.json()

Expand Down

0 comments on commit 48b9f73

Please sign in to comment.