Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timeout for requests to get go expvar metrics. #2183

Merged
merged 1 commit into from
Jan 7, 2016

Conversation

gphat
Copy link
Contributor

@gphat gphat commented Jan 5, 2016

What's this PR do?

Adds a timeout for requests made to fetch go expvar metrics.

Motivation

Locally we had a misbehaving app that never answered, causing the entire collector to be blocked and not getting metrics!

Notes

Should this be configurable?

r? @antifuchs @remh

@remh
Copy link

remh commented Jan 5, 2016

Thanks @gphat
The expvar endpoint should return pretty quickly usually. If it takes more than 10 secs, there is an issue. So it seems like a valid approach to me. Thanks!

@remh remh added this to the 5.7.0 milestone Jan 5, 2016
@gphat
Copy link
Contributor Author

gphat commented Jan 5, 2016

Excellent, thanks!

@remh remh self-assigned this Jan 6, 2016
@remh
Copy link

remh commented Jan 7, 2016

Merging, the failing tests are related to this issue #2187

remh pushed a commit that referenced this pull request Jan 7, 2016
Add timeout for requests to get go expvar metrics.
@remh remh merged commit 48b9f73 into DataDog:master Jan 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants