Export quorum queue member metrics #360
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.
WHAT
Exposes
members_len
andonline_len
metric for quorum queues. Themembers_len
shows the number of Raft members the queue was started with whileonline_len
shows the current number of raft members the queue has. Under normal scenario, these two numbers are same. However, when a node is replaced, the raft membership is actually reduced and has to be manually increased. These two metrics can be used to alert for such a situation where the online nodes length is less than the expected members length.Proof