-
Notifications
You must be signed in to change notification settings - Fork 753
feat(resourcemanager): add keyspace name label to metrics #9338
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
Conversation
edca17f to
e388a3b
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #9338 +/- ##
==========================================
+ Coverage 76.02% 76.08% +0.06%
==========================================
Files 475 477 +2
Lines 74080 74256 +176
==========================================
+ Hits 56320 56499 +179
+ Misses 14241 14235 -6
- Partials 3519 3522 +3
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
2ed8611 to
b3b3469
Compare
okJiang
left a comment
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.
rest lgtm
b3b3469 to
e23d3ee
Compare
Signed-off-by: JmPotato <github@ipotato.me>
Signed-off-by: JmPotato <github@ipotato.me>
e23d3ee to
55273a1
Compare
| case <-availableRUTicker.C: | ||
| // Prevent from holding the lock too long when there're many keyspaces and resource groups. | ||
| for _, krgm := range m.getKeyspaceResourceGroupManagers() { | ||
| keyspaceName, err := m.getKeyspaceNameByID(ctx, krgm.keyspaceID) |
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.
Is it possible to store the keyspace name in krgm?
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.
You mean keyspace manager? I tried, but encountered a circular reference problem, and considering that the resource manager microservice might be deployed in the future, it seems that we cannot fully rely on calls that may exist in another process's logic.
Signed-off-by: JmPotato <github@ipotato.me>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: okJiang, rleungx The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What problem does this PR solve?
Issue Number: ref #9296.
What is changed and how does it work?
Check List
Tests
No disruption to the current Grafana panel:
Release note