diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-09-29 12:46:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-29 12:46:30 -0700 |
commit | b84736e9b6401df0c6eeab9950bef09458a6aefd (patch) | |
tree | d9175208de3236db75a33879750a57b3000ba096 /vendor/github.com/armon/go-metrics | |
parent | 8b9dbb86133ff0fd6002a391268383d1593918ca (diff) | |
download | chat-b84736e9b6401df0c6eeab9950bef09458a6aefd.tar.gz chat-b84736e9b6401df0c6eeab9950bef09458a6aefd.tar.bz2 chat-b84736e9b6401df0c6eeab9950bef09458a6aefd.zip |
Updating server dependancies. (#7538)
Diffstat (limited to 'vendor/github.com/armon/go-metrics')
-rw-r--r-- | vendor/github.com/armon/go-metrics/prometheus/prometheus.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/armon/go-metrics/prometheus/prometheus.go b/vendor/github.com/armon/go-metrics/prometheus/prometheus.go index f31f2f9a5..a647e5965 100644 --- a/vendor/github.com/armon/go-metrics/prometheus/prometheus.go +++ b/vendor/github.com/armon/go-metrics/prometheus/prometheus.go @@ -66,7 +66,7 @@ func (p *PrometheusSink) SetGaugeWithLabels(parts []string, val float32, labels ConstLabels: prometheusLabels(labels), }) prometheus.MustRegister(g) - p.gauges[key] = g + p.gauges[hash] = g } g.Set(float64(val)) } @@ -88,7 +88,7 @@ func (p *PrometheusSink) AddSampleWithLabels(parts []string, val float32, labels ConstLabels: prometheusLabels(labels), }) prometheus.MustRegister(g) - p.summaries[key] = g + p.summaries[hash] = g } g.Observe(float64(val)) } @@ -115,7 +115,7 @@ func (p *PrometheusSink) IncrCounterWithLabels(parts []string, val float32, labe ConstLabels: prometheusLabels(labels), }) prometheus.MustRegister(g) - p.counters[key] = g + p.counters[hash] = g } g.Add(float64(val)) } |