MongoDB input plugin: Improve state data #2001
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Required for all PRs:
Adds ARB as a
member_status
(replica set arbiter). Possiblemember_status
values are now:The plugin now uses the proper MongoDB replica set state string for
state
value, as described in the MongoDB documentation. Thestate
value will usually likely be:but might also be:
This differs from previous behavior in that the
state
would be the same asmember_status
unlessmember_status
wasUNK
(and thenstate
was empty). The new behavior provides more information about the actual state of a replica set member.Note: The other few states in the MongoDB documentation not mentioned are not seen by the Telegraf process, but would be reflected if read.