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(server): Cluster MOVED response Prometheus metric #4786

Merged
merged 2 commits into from
Mar 17, 2025

Conversation

mkaruza
Copy link
Contributor

@mkaruza mkaruza commented Mar 17, 2025

Get number of MOVED reported errors and send as Prometheus metric.

Closes #4749

Get number of MOVED reported errors and send as Prometheus metric.

Closes #4749

Signed-off-by: mkaruza <[email protected]>
@mkaruza mkaruza requested a review from BorysTheDev March 17, 2025 11:30
BorysTheDev
BorysTheDev previously approved these changes Mar 17, 2025

string moved_errors_str;
uint64_t moved_total_errors = 0;
if (m.facade_stats.reply_stats.err_count.contains("MOVED")) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

here it's okeyish, but I prefer we do not use double-find patterns. This is why god stroustroup created iterators.

@romange romange merged commit 345c294 into main Mar 17, 2025
10 checks passed
@romange romange deleted the mkaruza/github#4749 branch March 17, 2025 13:05
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.

Cluster MOVED response Prometheus metric
3 participants