-
Notifications
You must be signed in to change notification settings - Fork 62
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
Pinger timeout should return an error #70
Comments
OnFinish will return without error even if the prober timed out before returning all requested pings. If we instead ensure we sent as many pings as requested during OnFinish, that'll help cover this edge case. Issue raised upstream: prometheus-community/pro-bing#70
Adding a +1 for this. Given that an unreachable host will block on |
indeed. Especially since one specifically has to set the timeout (which I initially did not do and wondered why my pinger go routine sometimes would not properly return). |
I tried running with |
I may not understand, but a
Does this not work for your situation? |
If the pinger reaches
timeout
, no error is returned from OnFinish() and it makes it seem like the probe finished successfully, even if nothing was returned from the ping job.pro-bing/ping.go
Lines 538 to 539 in 0999adf
I believe this should return an error indicating the timeout was reached before the ping job finished fully. Happy to make the PR if this sounds good
The text was updated successfully, but these errors were encountered: