Skip to content

feat: add raft member lag #365

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

liebman
Copy link

@liebman liebman commented Jun 3, 2025

Adding metrics for how far behind the leader each raft member is

# HELP consul_raft_lag How far behind the leader a node is.
# TYPE consul_raft_lag gauge
consul_raft_lag{member="consul1",member_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx0"} 1
consul_raft_lag{member="consul2",member_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx1"} 0
consul_raft_lag{member="consul3",member_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx2"} 1
consul_raft_lag{member="consul4",member_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx3"} 2
consul_raft_lag{member="consul5",member_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx4"} 0

Signed-off-by: Chris Liebman <[email protected]>
@liebman liebman force-pushed the feat/add-raft-member-lag branch from d56f8ea to 5355604 Compare June 3, 2025 21:02
@liebman liebman marked this pull request as ready for review June 3, 2025 22:54
Signed-off-by: Chris Liebman <[email protected]>
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.

1 participant