vendor: update github.com/VictoriaMetrics/metrics from v1.7.2 to v1.8.0. This version supports histograms

This commit is contained in:
Aliaksandr Valialkin
2019-11-23 00:19:44 +02:00
parent c4287b3c86
commit 9d1fcb2be6
6 changed files with 269 additions and 5 deletions

View File

@@ -151,7 +151,7 @@ func gzipHandler(rh RequestHandler) http.HandlerFunc {
return http.HandlerFunc(hf)
}
var metricsHandlerDuration = metrics.NewSummary(`vm_http_request_duration_seconds{path="/metrics"}`)
var metricsHandlerDuration = metrics.NewHistogram(`vm_http_request_duration_seconds{path="/metrics"}`)
func handlerWrapper(w http.ResponseWriter, r *http.Request, rh RequestHandler) {
requestsTotal.Inc()