hwt/metrics/metrics.go

10 lines
174 B
Go
Raw Normal View History

2018-01-21 14:50:32 -08:00
package metrics
import (
"time"
)
func HTTPLatency(path string, dur time.Duration) {
httpReqLat.WithLabelValues(path).Observe(float64(dur) / float64(time.Millisecond))
}