-
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
response_timeout
deprecated option for Prometheus input still broken
#15076
Comments
OK @powersj, I think I've tracked down the problem here: the I guess the solution is to remove the former and use the latter? |
In influxdata#14153, the HTTP client config struct gained a response timeout config option with TOML tags. This meant that there were two defined for both Prometheus plugin and the HTTP client config struct. This removes the one in Prometheus, which was used to set the one in the HTTP client anyway. fixes: influxdata#15076
Looks like v1.28.2 was the last working release. After that release #14153 landed which updated the HTTP Client config struct with a field also called While I have put up #15078 with a potential solution, I need to chat with the team over the implications. Thanks |
No worries, thanks for looking into it. If 1.28.2 works, I can take us that far and update the config after to remove the deprecated stuff, so that's enough to unblock me personally. Hazards of falling so far behind! |
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.30.0, Linux AMD64 (Debian Bookworm)
Docker
N/a
Steps to reproduce
response_timeout
option...
Expected behavior
The field is deprecated in favour of
timeout
, but not removed, so should continue to function.Actual behavior
Telegraf fails to start
Additional info
Follow-up to #12859
I'm currently attempting an upgrade of Telegraf from the 1.21 series to latest across a fleet of hundreds of servers. Until this bug is fixed, there is no telegraf config that both supports a timeout for this input, and works across both versions, making the upgrade difficult to manage.
The text was updated successfully, but these errors were encountered: