From d93907009c7958179634182620d9ea4be2bc3fc7 Mon Sep 17 00:00:00 2001 From: subham sarkar Date: Fri, 4 Sep 2020 20:06:27 +0530 Subject: [PATCH] Use prometheus.Gauge interface instead of prometheus.Counter Signed-off-by: subham sarkar --- pkg/registry/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/registry/registry.go b/pkg/registry/registry.go index 0022848..7ce70e0 100644 --- a/pkg/registry/registry.go +++ b/pkg/registry/registry.go @@ -79,7 +79,7 @@ func (r *Registry) StoreCounter(metricName string, hash metrics.LabelHash, label r.Store(metricName, hash, labels, vec, c, metrics.CounterMetricType, ttl) } -func (r *Registry) StoreGauge(metricName string, hash metrics.LabelHash, labels prometheus.Labels, vec *prometheus.GaugeVec, g prometheus.Counter, ttl time.Duration) { +func (r *Registry) StoreGauge(metricName string, hash metrics.LabelHash, labels prometheus.Labels, vec *prometheus.GaugeVec, g prometheus.Gauge, ttl time.Duration) { r.Store(metricName, hash, labels, vec, g, metrics.GaugeMetricType, ttl) }