-
Notifications
You must be signed in to change notification settings - Fork 108
improve node_hint metrics #1990
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
base: master
Are you sure you want to change the base?
Conversation
summaryInferred base version: v3.124.0 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1990 +/- ##
==========================================
+ Coverage 73.73% 74.08% +0.35%
==========================================
Files 396 396
Lines 41251 34645 -6606
==========================================
- Hits 30415 25667 -4748
+ Misses 9721 7852 -1869
- Partials 1115 1126 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
f35e0df to
f0557dd
Compare
🌋 SLO Test ResultsStatus: 🟡 6 workloads tested • 6 workloads with warnings
Generated by ydb-slo-action |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR improves the node_hint metrics by renaming the metrics from node_hint_miss to node_hint and adding a "hit" label to distinguish between cache hits and misses, addressing the issue where the previous implementation reported all requests as misses even when the preferred session ID matched the actual session ID.
- Renamed metrics from
*_node_hint_missto*_node_hintwith an added "hit" label - Introduced string constants
trueStrandfalseStrfor consistent labeling - Implemented hit/miss detection logic based on comparison of preferred and actual node IDs
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| metrics/query.go | Added constants and updated node hint metric with hit detection logic for query pool |
| metrics/table.go | Updated node hint metric with hit detection logic for table pool, using constants from query.go |
| CHANGELOG.md | Documented the breaking change in metric naming and added hit label feature |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@asmyasnikov I've opened a new pull request, #1991, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
@asmyasnikov I've opened a new pull request, #1992, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
@asmyasnikov I've opened a new pull request, #1993, to work on those changes. Once the pull request is ready, I'll request review from you. |
f0557dd to
049723b
Compare
049723b to
aad52f6
Compare
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
node_hint_miss metric reports node_hint info for all requests, even when preferred session_id equals actual session_id
What is the new behavior?
added "hit" label to metrics to distinguish between hits and misses
Other information