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

[v24.1.x] Refined leadership changed metrics #19891

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #19873

Previously the leadership changed metric was incremented every time a
group leader was updated with the new leader or the leader was currently
unknown. Technically the change from leader to no leader is a leadership
change but it was confusing to users.

Change the metric updates to only account the changes when leader is
present. This way after each successful leader election the metric is
incremented by one on all partition replicas.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 5bee838)
Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 501eaed)
@vbotbuildovich vbotbuildovich added this to the v24.1.x-next milestone Jun 19, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jun 19, 2024
@mmaslankaprv
Copy link
Member

unrelated ci failure: #19933

@mmaslankaprv mmaslankaprv merged commit 85350a9 into redpanda-data:v24.1.x Jun 21, 2024
16 of 19 checks passed
@piyushredpanda piyushredpanda modified the milestones: v24.1.x-next, v24.1.9 Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants