-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Don't report 0ms on timeout in dns_query #4118
Conversation
@danielnelson exited to test this - is there a way to get hold of nightly builds for telegraf? |
Yes, these packages are updated by the CircleCI build: |
Why wouldn't you report the timeout value for query_time_ms? I'm trying to use this right now to help debug an issue and if a request times out, I would expect to see a high response time recorded. |
It has been some time, but I believe it stems back to the changes on http_response where we had an existing field One potential issue with mixing success and timeout together is that when you aggregate the timeout values can skew the results. This is probably not a big problem because you could use a tag to exclude the timeout times. |
The timeouts are exactly the thing I'm looking for. At first I didn't even notice them until I saw the log entries. Seems a backward way of doing it. |
If the |
Adds
result
tag andresult_code
field for results: success, timeout, error. If the result is not success, thequery_time_ms
field will be omitted.closes #2548
Required for all PRs: