summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Winder <wwinder.unh@gmail.com>2019-06-10 23:01:16 -0400
committerWill Winder <wwinder.unh@gmail.com>2019-06-10 23:01:16 -0400
commita7fcd7eff41bf87c4a6df6c485cacb4458c22761 (patch)
tree0b09ac2a1be9d601b2ea2de705693c9fe7469f59
parentb0891459ece34d45be66bed9c6c12edcbc9c5862 (diff)
-rw-r--r--util/metrics/counter.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/metrics/counter.go b/util/metrics/counter.go
index e157846e9..850be3a63 100644
--- a/util/metrics/counter.go
+++ b/util/metrics/counter.go
@@ -173,6 +173,7 @@ func (counter *Counter) WriteMetric(buf *strings.Builder, parentLabels string) {
}
}
+// AddMetric adds the metric into the map
func (counter *Counter) AddMetric(values map[string]string) {
counter.Lock()
defer counter.Unlock()