Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kochie <superq@gmail.com>2018-10-16 17:31:45 +0300
committerBen Kochie <superq@gmail.com>2018-10-16 17:31:45 +0300
commit127c26472cf9f3e94462f387d721f9c0e9ca11b7 (patch)
tree40b1a983e566b2666ec1097286cfc3e4f7761e97
parent8a2c707469b6261922141315f314a3b17fe3c19b (diff)
Use correct Prometheus histogram type.
-rw-r--r--internal/middleware/limithandler/metrics.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/middleware/limithandler/metrics.go b/internal/middleware/limithandler/metrics.go
index 9ce3648d4..7cc57e0d9 100644
--- a/internal/middleware/limithandler/metrics.go
+++ b/internal/middleware/limithandler/metrics.go
@@ -38,7 +38,7 @@ var (
type promMonitor struct {
queuedGauge prometheus.Gauge
inprogressGauge prometheus.Gauge
- histogram prometheus.Histogram
+ histogram prometheus.Observer
}
func init() {
@@ -105,7 +105,7 @@ func NewPromMonitor(system string, fullMethod string) ConcurrencyMonitor {
queuedGauge := queuedGaugeVec.WithLabelValues(serviceName, methodName, system)
inprogressGauge := inprogressGaugeVec.WithLabelValues(serviceName, methodName, system)
- var histogram prometheus.Histogram
+ var histogram prometheus.Observer
if histogramVec != nil {
histogram = histogramVec.WithLabelValues(system, serviceName, methodName)
}