From 80d3fd76a8f8ee61226025ec2fa5ac03be210708 Mon Sep 17 00:00:00 2001 From: Lukasz Jagiello Date: Sun, 7 Feb 2016 22:09:50 +0000 Subject: [PATCH] m - metric - behaves like a counter --- plugins/inputs/statsd/statsd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/inputs/statsd/statsd.go b/plugins/inputs/statsd/statsd.go index 14e0dba9c..47b900db5 100644 --- a/plugins/inputs/statsd/statsd.go +++ b/plugins/inputs/statsd/statsd.go @@ -487,7 +487,7 @@ func (s *Statsd) aggregate(m metric) { cached.stats.AddValue(m.floatvalue) s.timings[m.hash] = cached } - case "c": + case "c", "m": // check if the measurement exists _, ok := s.counters[m.hash] if !ok { @@ -525,7 +525,7 @@ func (s *Statsd) aggregate(m metric) { } else { s.gauges[m.hash].fields[m.field] = m.floatvalue } - case "s", "m", "mr": + case "s", "mr": // check if the measurement exists _, ok := s.sets[m.hash] if !ok {