-
Notifications
You must be signed in to change notification settings - Fork 726
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
*: improve more metrics #1761
*: improve more metrics #1761
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1761 +/- ##
==========================================
+ Coverage 77.19% 77.27% +0.08%
==========================================
Files 163 163
Lines 16408 16417 +9
==========================================
+ Hits 12666 12687 +21
+ Misses 2687 2676 -11
+ Partials 1055 1054 -1
Continue to review full report at Codecov.
|
server/checker/metrics.go
Outdated
@@ -23,8 +23,17 @@ var ( | |||
Name: "event_count", | |||
Help: "Counter of checker events.", | |||
}, []string{"type", "name"}) | |||
|
|||
processStatusCounter = prometheus.NewGaugeVec( |
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.
use checkerCouter
?
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.
checkerCounter?
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
95f25a7
to
0ae6c46
Compare
Signed-off-by: Ryan Leung <[email protected]>
/run-all-tests |
@rleungx merge failed. |
/merge |
/run-all-tests |
What problem does this PR solve?
At present, it's hard to know the process status of making replicas for offline or down stores. We might not know why the operator is failed to be created.
What is changed and how it works?
This PR adds a new metrics named
processStatusCounter
to record the failure reason when creating the operator for the offline or down store. Also, this PR renames some labels to make them more clear.Pros and cons:
Pros:
Cons:
checkerCounter
.UPDATE:
According to the comments, reuse
checkerCounter
.Check List
Tests