m - metric - behaves like a counter
This commit is contained in:
parent
5661209585
commit
80d3fd76a8
|
@ -487,7 +487,7 @@ func (s *Statsd) aggregate(m metric) {
|
||||||
cached.stats.AddValue(m.floatvalue)
|
cached.stats.AddValue(m.floatvalue)
|
||||||
s.timings[m.hash] = cached
|
s.timings[m.hash] = cached
|
||||||
}
|
}
|
||||||
case "c":
|
case "c", "m":
|
||||||
// check if the measurement exists
|
// check if the measurement exists
|
||||||
_, ok := s.counters[m.hash]
|
_, ok := s.counters[m.hash]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
@ -525,7 +525,7 @@ func (s *Statsd) aggregate(m metric) {
|
||||||
} else {
|
} else {
|
||||||
s.gauges[m.hash].fields[m.field] = m.floatvalue
|
s.gauges[m.hash].fields[m.field] = m.floatvalue
|
||||||
}
|
}
|
||||||
case "s", "m", "mr":
|
case "s", "mr":
|
||||||
// check if the measurement exists
|
// check if the measurement exists
|
||||||
_, ok := s.sets[m.hash]
|
_, ok := s.sets[m.hash]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
Loading…
Reference in New Issue