-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
feat(outputs.graylog): Implement connection retries #11950
Conversation
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.
Thank you for the updates! couple questions added
6588ff9
to
b28b704
Compare
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.
Thanks for the updates - only comment about the error message
…ol if we want to retry forever or not.
Download PR build artifacts for linux_amd64.tar.gz, darwin_amd64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
This PR adds code to retry to connect to the given endpoints if
connection_retry
is set totrue
. This is helpful in cases where Telegraf is started, but the servers are not up or not reachable yet. The wait-time between retry attempts can be specified viaconnection_retry_wait_time
option.Please note, Telegraf will try to connect only 3 times if
connection_retry = false
(default) and will terminate if not successful. To connect forever setconnection_retry = true
, but be aware that metrics might get lost if the metric buffer overflows before a successful connection was made.