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

feat(new_metircs): collect the number of primary and secondary replicas #2161

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

empiredan
Copy link
Contributor

@empiredan empiredan commented Dec 2, 2024

Currently we don't have metrics about how many primary replicas or secondary
replicas on a replica server, which means we have to find them using nodes
command by Pegasus shell rather than just monitoring graphs.

@github-actions github-actions bot added the cpp label Dec 2, 2024
@empiredan empiredan marked this pull request as ready for review December 3, 2024 10:04
}
}

METRIC_VAR_SET(learning_replicas, learning_count);
METRIC_VAR_SET(inactive_replicas, status_counts[partition_status::PS_INACTIVE]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These METRIC_VAR_SET will be skipped if using continue above, is it in purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continue is in for loop, and METRIC_VAR_SET is out of for loop, right ?

@empiredan empiredan merged commit 1bec66d into apache:master Dec 4, 2024
89 of 90 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants