Skip to content
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

Log connect error only in wavefront output #3549

Merged
merged 1 commit into from
Dec 6, 2017

Conversation

danielnelson
Copy link
Contributor

If an error is returned from an output plugins Connect function, the Agent will connect once and if it fails again the agent will exit. This behavior should probably be altered in the Output interface, so that the Connect function becomes an initialization function. I'm planning to add an initialization function in #272 and will then revisit if the Connect function should then be removed.

In the meantime, we can log the error and return nil. This plugin will attempt reconnect on every Write.

cc @puckpuck

closes #3545

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

@danielnelson danielnelson added this to the 1.5.0 milestone Dec 6, 2017
@danielnelson danielnelson merged commit 177e7e2 into master Dec 6, 2017
@danielnelson danielnelson deleted the wavefront-connect-error branch December 6, 2017 22:55
danielnelson added a commit that referenced this pull request Dec 6, 2017
skord pushed a commit to skord/telegraf that referenced this pull request Dec 7, 2017
aromeyer pushed a commit to aromeyer/telegraf that referenced this pull request May 19, 2018
codesmith14 pushed a commit to signalfx/telegraf that referenced this pull request Jun 19, 2018
maxunt pushed a commit that referenced this pull request Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

telegraf fails to start if its wavefront output fails to connect
1 participant