Open Mokson opened 1 year ago
telegraf keeps running and will retry to get cookies in accordance with the interval settings
Failing on a connection failure for inputs is the general workflow used by telegraf. Imagine if you typo'ed the URL and we ignored errors. You would probably be not happy that metrics were never collected when you expected them to be.
There are a number of feature requests that have added an option to ignore errors and continue on, and that may be the way forward here. In this case this is during the Init
in the inputs.http
plugin. Specifically, setting up the cookie and calling cookie's auth
here. It makes sense to add an option cookie
to possible ignore errors so other plugins can take advantage of ignoring errors on auth.
telegraf crashes
To be a little pedantic, telegraf does not crash, but stops because there was an error. We certainly do not want to see a stack trace from a crash in a situation like this, but the error message is acceptable.
Thanks for the answer @powersj ! The issue with this service stopping is that it stops at one of the many inputs/urls and this means that the healthy instances are not processed/queried. So I have a boot loop of the service due to the unreachable host
Failing on a connection failure for inputs is the general workflow used by telegraf. Imagine if you typo'ed the URL and we ignored errors. You would probably be not happy that metrics were never collected when you expected them to be.
Came here looking for help with a similar problem. Typos in a config are the responsibility of the user making that change. I think what makes users more unhappy is for data collection to stop across the network because one host goes unreachable.
Relevant telegraf.conf
Logs from Telegraf
System info
ubuntu + latest telegraf
Docker
No response
Steps to reproduce
Expected behavior
telegraf keeps running and will retry to get cookies in accordance with the interval settings
Actual behavior
telegraf crashes
Additional info
No response