-
Notifications
You must be signed in to change notification settings - Fork 728
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
schedule: add more dimension for filter metrics #1746
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1746 +/- ##
==========================================
+ Coverage 76.83% 76.95% +0.11%
==========================================
Files 162 162
Lines 15893 15910 +17
==========================================
+ Hits 12211 12243 +32
+ Misses 2655 2638 -17
- Partials 1027 1029 +2
Continue to review full report at Codecov.
|
server/schedule/filter/metrics.go
Outdated
@@ -22,7 +22,7 @@ var ( | |||
Subsystem: "schedule", | |||
Name: "filter", | |||
Help: "Counter of the filter", | |||
}, []string{"action", "address", "store", "type"}) | |||
}, []string{"action", "address", "store", "acton", "type"}) |
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.
Maybe "act-on" is better?
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.
"acton" is too similar to "action". Is there any reason for using it instead of "act-on"?
cad5895
to
5312c6f
Compare
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.
LGTM
PTAL @lhy1024 |
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.
the rest LGTM
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
733b0d8
to
0a562cf
Compare
Signed-off-by: Ryan Leung <[email protected]>
0a562cf
to
fe4732c
Compare
Signed-off-by: Ryan Leung <[email protected]>
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.
LGTM
/run-all-tests |
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
What problem does this PR solve?
We have added the filter related metrics in grafana, but it's hard to understand how a filter acts on the checkers or the schedulers. It only shows the total filter number which is useless.
What is changed and how it works?
This PR adds a new dimension named
ActOn
for each filter to indicate that each scheduler or checker is affected by the kind of the filter.Also this PR removes two unused filters:
disconnectFilter
andrejectLeaderFilter
Check List
Tests
Related changes
tidb-ansible
repository