-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
etcdserver: add "etcd_server_health_success/failures" #10156
Conversation
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
Codecov Report
@@ Coverage Diff @@
## master #10156 +/- ##
==========================================
+ Coverage 71.54% 71.65% +0.11%
==========================================
Files 390 390
Lines 36307 36312 +5
==========================================
+ Hits 25975 26021 +46
+ Misses 8530 8484 -46
- Partials 1802 1807 +5
Continue to review full report at Codecov.
|
/cc @wenjiaswe |
@@ -43,11 +44,6 @@ func HandlePrometheus(mux *http.ServeMux) { | |||
mux.Handle(pathMetrics, promhttp.Handler()) | |||
} | |||
|
|||
// HandleHealth registers health handler on '/health'. |
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.
this func is unused?
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.
@xiang90 Yes, it was never used :)
lgtm |
1 similar comment
lgtm |
With #10155, I am trying to improve server side metrics.
People use
/health
endpoint heavily to monitor etcd server status.Helpful to have server-side metrics to tell how many health check have been made, and how many of which were marked "failed".