-
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
Issue #3911 Add telegraf version to User-Agent header for http requests #4838
Issue #3911 Add telegraf version to User-Agent header for http requests #4838
Conversation
plugins/outputs/http/http_test.go
Outdated
@@ -10,6 +10,8 @@ import ( | |||
"testing" | |||
"time" | |||
|
|||
"github.com/influxdata/telegraf/internal" | |||
|
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 import can be grouped with the other influxdata/telegraf ones
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.
I just noticed in the issue that I suggested using a slash instead of a space Telegraf/1.8.2
, I think we should use the slash to be more compliant with https://tools.ietf.org/html/rfc2616#section-14.43 by using a product token
707d63d
to
5d05046
Compare
@danielnelson Thanks, I learned something new today re: product tokens. I've incorporated that feedback as well as fixed the ungrouped import per @glinton's feedback |
Header is added in influxdb, influxdb_v2, and http outputs.
Header is added in influxdb, influxdb_v2, and http outputs.
Header is added in influxdb, influxdb_v2, and http outputs.
Header is added in influxdb, influxdb_v2, and http outputs.
Header is added in influxdb, influxdb_v2, and http outputs.
Required for all PRs:
@danielnelson This PR adds a
User-Agent: Telegraf X.Y.Z
version to outbound http requests for the following output plugins: