Merge pull request #3700 from xiang90/metrics_hi

Replace Summary with Histogram for all metrics
This commit is contained in:
Xiang Li
2015-11-10 10:06:45 -08:00
8 changed files with 46 additions and 37 deletions

View File

@ -622,7 +622,7 @@ func (s *EtcdServer) Do(ctx context.Context, r pb.Request) (Response, error) {
select {
case x := <-ch:
proposeDurations.Observe(float64(time.Since(start).Nanoseconds() / int64(time.Millisecond)))
proposeDurations.Observe(float64(time.Since(start)) / float64(time.Second))
resp := x.(Response)
return resp, resp.err
case <-ctx.Done():