Skip to content
New issue

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

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

Already on GitHub? # to your account

The http_response plugin does not maintain headers when following redirects. #2507

Closed
zrice57 opened this issue Mar 7, 2017 · 1 comment
Closed

Comments

@zrice57
Copy link

zrice57 commented Mar 7, 2017

Bug report

After following redirects, the http_response plugin uses the default user-agent of
"Go-http-client/1.1".

Relevant telegraf.conf:

I'm including the erb used to generate my config.
[[inputs.http_response]]
address = "url"
response_timeout = "10s"
method = "GET"
follow_redirects = true
interval = "30s"

[inputs.http_response.headers]
User-Agent = "ServiceUptime"

System info:

[Include Telegraf version, operating system name, and other relevant details]
Centos 7.3
Telegraf v1.2.1 (git: release-1.2 3b6ffb3)

Proposal:

Use the defined headers during redirect requests.

Use case: [Why is this important (helps with prioritizing requests)]

It makes it difficult to properly filter the requests from analytics data.

@danielnelson
Copy link
Contributor

I believe this was fixed by changes in go 1.8, which we are planning to use to build telegraf 1.3.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants