http_response regression when not following redirects #6366
Labels
bug
unexpected problem or unintended behavior
regression
something that used to work, but is now broken
Milestone
Relevant telegraf.conf:
System info:
Steps to reproduce:
I'm monitoring a bunch of HTTP websites that redirect to HTTPS with Grafana and Telegraf's http_response . The HTTPS websites are monitored separately, i.e. I want to monitor the redirections themselves.
Expected behavior:
Based upon the documentation (and working up to Telegraf 1.11.5), I would expect the response code to be a redirection (i.e. 301, 307), and the result code to be 0.
Actual behavior:
Since 1.12.0, the result code is still correct, but the response code is 2 (body_read_error). However, according to the docs, it should be zero.
Additional info:
Log output:
The text was updated successfully, but these errors were encountered: