-
Notifications
You must be signed in to change notification settings - Fork 753
statistics: Add 'store' label to metric pd_cluster_status. #9898
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
statistics: Add 'store' label to metric pd_cluster_status. #9898
Conversation
|
Hi @SerjKol80. Thanks for your PR. I'm waiting for a tikv member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
| ObserveHotStat(store, storesStats) | ||
| } | ||
| stats := storeStats.stats | ||
| tikvStats := stats.engineStatistics[core.EngineTiKV] |
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.
Do we need to add a new test for it?
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.
@lhy1024
Since we don't have aggregation logic anymore, then the test was removed for that part.
So, the only thing that might be tested in a new logic is if actual metric is emitted. I looked through existing tests and didn't find any tests validating actual metric emission. Thus, no new tests.
| Name: "status", | ||
| Help: "Status of the cluster.", | ||
| }, []string{"type", "engine"}) | ||
| }, []string{"type", "engine", "store"}) |
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.
Do we need to update metrics/grafana/pd.json?
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.
@lhy1024
I don't think so. All queries for pd_cluster_status metrics already aggregate that metric with sum(). Thus, there should no be any changes there. The description of that metrics should be updated, but I wasn't able to find doc describing metrics in this repo.
|
@lhy1024 |
|
@bufferflies PTAL |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bufferflies, lhy1024, Tema 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 |
|
@lhy1024 @bufferflies could you please approve 4 pending workflows to run ^ |
4fca504 to
4a4d487
Compare
|
/retest |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #9898 +/- ##
==========================================
+ Coverage 78.58% 78.68% +0.10%
==========================================
Files 494 495 +1
Lines 66411 66457 +46
==========================================
+ Hits 52187 52294 +107
+ Misses 10440 10379 -61
Partials 3784 3784
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
4a4d487 to
750b9be
Compare
|
/retest |
|
/test pull-unit-test-next-gen |
| "fmt" | ||
| "strconv" | ||
|
|
||
| "github.com/pingcap/kvproto/pkg/metapb" |
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.
plz fix ci
|
/retest |
Signed-off-by: Sergey Kolosov <sergey.kolosov@airbnb.com>
750b9be to
fc8d6df
Compare
|
/retest |
close tikv#9855 Add 'store' label to metric pd_cluster_status. Signed-off-by: Sergey Kolosov <sergey.kolosov@airbnb.com> Co-authored-by: Sergey Kolosov <sergey.kolosov@airbnb.com>
close tikv#9855 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created to branch |
close tikv#9855 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: Close #9855
What is changed and how does it work?
Check List
Tests
Code changes
Side effects
Related changes
N/A
Release note