-
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(inputs.vsphere): Flag for more lenient behavior when connect fails on startup #12828
Conversation
The merge history looks a bit stupid, but I've checked it and it's fine. Just an artifact of how I brought the changes I made earlier today into this branch. Yes, I should have rebased instead... :) |
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
@srebhan when you review, the leaf changes in finder.go and directory readme changes were from a previous PR merged thursday morning
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.
Just have one comment about quoting the string, otherwise looks good. Do you plan to rebase this to get rid of the non-related changes?
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
I'm fine with your suggested changed and I've committed them. |
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.
Looks good to me. Thanks for the contribution @prydin!
## Specifies plugin behavior regarding disconnected servers | ||
## Available choices : | ||
## - error: telegraf will return an error on startup if one the servers is unreachable | ||
## - skip: telegraf will skip unreachable servers on both startup and gather |
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.
Might be 'ignore' instead of 'skip'?
resolves #10523
Added the server_disconnected_behavior flag mimicking the behavior of the MongoDB-plugin. A value of "error" (default) exits telegraf if the connection to vCenter failed on startup. A value of "ignore" prints a warning and continues to try to connect every collection cycle.