Skip to content
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

Merged
merged 3 commits into from
Oct 9, 2018

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Oct 8, 2018

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".

gyuho added 3 commits October 7, 2018 17:15
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-io
Copy link

Codecov Report

Merging #10156 into master will increase coverage by 0.11%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
etcdserver/api/etcdhttp/metrics.go 85% <100%> (+7.85%) ⬆️
proxy/grpcproxy/register.go 69.44% <0%> (-13.89%) ⬇️
clientv3/namespace/watch.go 87.87% <0%> (-6.07%) ⬇️
etcdctl/ctlv3/command/lease_command.go 65.34% <0%> (-5.95%) ⬇️
pkg/logutil/zap_grpc.go 47.61% <0%> (-4.77%) ⬇️
etcdserver/api/v3election/election.go 66.66% <0%> (-2.78%) ⬇️
etcdserver/api/v3rpc/watch.go 80.06% <0%> (-2.29%) ⬇️
etcdserver/api/v3rpc/lease.go 69.31% <0%> (-2.28%) ⬇️
lease/leasehttp/http.go 63.97% <0%> (-1.48%) ⬇️
clientv3/balancer/grpc1.7-health.go 58.13% <0%> (-1.17%) ⬇️
... and 17 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6976819...7524cc6. Read the comment docs.

@jingyih
Copy link
Contributor

jingyih commented Oct 8, 2018

/cc @wenjiaswe

@@ -43,11 +44,6 @@ func HandlePrometheus(mux *http.ServeMux) {
mux.Handle(pathMetrics, promhttp.Handler())
}

// HandleHealth registers health handler on '/health'.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this func is unused?

Copy link
Contributor Author

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 :)

@xiang90
Copy link
Contributor

xiang90 commented Oct 8, 2018

lgtm

1 similar comment
@jpbetz
Copy link
Contributor

jpbetz commented Oct 9, 2018

lgtm

@gyuho gyuho merged commit ba606bf into etcd-io:master Oct 9, 2018
@gyuho gyuho deleted the metrics-health branch October 9, 2018 07:12
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants