-
Notifications
You must be signed in to change notification settings - Fork 727
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
*: reset metrics after the leader steps down #1790
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1790 +/- ##
==========================================
- Coverage 77.68% 77.63% -0.05%
==========================================
Files 166 166
Lines 16395 16431 +36
==========================================
+ Hits 12736 12756 +20
- Misses 2629 2636 +7
- Partials 1030 1039 +9
Continue to review full report at Codecov.
|
/run-unit-test |
server/coordinator.go
Outdated
storeID := s.GetID() | ||
storeLabel := fmt.Sprintf("%d", storeID) | ||
// Resets hot write metrics | ||
hotSpotStatusGauge.WithLabelValues(storeAddress, storeLabel, "total_written_bytes_as_peer").Set(0) |
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.
Can we get all the label values
? It's easy to ignore some clean up when we add new metrics. It seems the Desc()
can get the LabelPair
.
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
824ca0d
to
80c2e7e
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.
The rest LGTM.
Signed-off-by: Ryan Leung <[email protected]>
PTAL @shafreeck @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.
LGTM
PTAL @shafreeck |
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 |
cherry pick to release-3.1 failed |
cherry pick to release-3.0 failed |
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
* *: reset metrics after the leader steps down (#1790) Signed-off-by: Ryan Leung <[email protected]> * *: improve label metrics (#1753) 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]>
What problem does this PR solve?
Closes #1415.
What is changed and how it works?
This PR resets the metrics when the leader steps down.
Check List
Tests