-
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
Jolokia configurable HTTP timeouts #2097 #2098
Jolokia configurable HTTP timeouts #2097 #2098
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please decrease the verbosity and use internal.Duration data types, so that these can be written as string durations ("3s")
see latest version of the rabbitmq plugin that I assume this was pulled from: https://github.com/influxdata/telegraf/blob/master/plugins/inputs/rabbitmq/rabbitmq.go#L156-L164
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes requested, and also rebase
"github.com/influxdata/telegraf/plugins/inputs" | ||
) | ||
|
||
// Default http timeouts | ||
const DefaultResponseHeaderTimeout = 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just make these time.Duration objects directly, rather than converting to seconds below
## writing the request (including its body, if any). This | ||
## time does not include the time to read the response body. | ||
## See http.Transport.ResponseHeaderTimeout | ||
# responseHeaderTimeout = 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these should match the time format ("3s" and "4s"), and they should be response_header_timeout and client_timeout.
## writing the request (including its body, if any). This | ||
## time does not include the time to read the response body. | ||
## See http.Transport.ResponseHeaderTimeout | ||
# responseHeaderTimeout = "3s" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be response_header_timeout
## Client. The timeout includes connection time, any | ||
## redirects, and reading the response body. | ||
## See http.Client.Timeout | ||
# clientTimeout = "4s" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be client_timeout
## Optional http timeouts | ||
## | ||
## ResponseHeaderTimeout, if non-zero, specifies the amount of | ||
## time to wait for a server's response headers after fully |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is too much writing, decrease the verbosity of this to match the rabbitmq plugin (you'll need to update master to see it)
Required for all PRs: