@cryptotaxi247 / kubo / commits / bf69017e2

metrics: we're now recording latency seconds, not microseconds

License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Oct 31, 2018 at 05:12 UTC bf69017e251e9369bdde6961f991746b9d34e30b
1 file changed +2 -2
core/corehttp/metrics.go
+2 -2
@@ -47,8 +47,8 @@ func MetricsCollectionOption(handlerName string) ServeOption {
47 }
48 }
49
50 - opts.Name = "request_duration_microseconds"
51 - opts.Help = "The HTTP request latencies in microseconds."
50 + opts.Name = "request_duration_seconds"
51 + opts.Help = "The HTTP request latencies in seconds."
52 reqDur := prometheus.NewSummaryVec(opts, nil)
53 if err := prometheus.Register(reqDur); err != nil {
54 if are, ok := err.(prometheus.AlreadyRegisteredError); ok {