Merge pull request #333 from shmsr/gauge-interface

Use prometheus.Gauge interface instead of prometheus.Counter
This commit is contained in:
Matthias Rampke 2020-09-04 17:08:20 +02:00 committed by GitHub
commit 424d4781ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}