Closed liyichao closed 9 years ago
The meter in brubeck is same with counter in etsy/statsd, I also don't understand what the purpose of "counter" in brubeck here is, the logic above is confusing.
Think there are two servers reporting the same counter http_requests, first one server sends 5, and the metric->as.counter.value is 5, then the second server sends 10, metric->as.counter.value is 10, but we expect the counter to be 15. Am I right?
You're thinking of a "meter" (special character c
). A counter is like a meter but always monotonically increasing (special character C
). The nomenclature is not exactly the same as in StatsD, but the packet and metric types are 100% compatible; some StatsD implementations just don't support the C
-kind of metrics.
Sorry for the confusion!
In the brubeck/metric.c, there is this:
Think there are two servers reporting the same counter
http_requests
, first one server sends 5, and the metric->as.counter.value is 5, then the second server sends 10, metric->as.counter.value is 10, but we expect the counter to be 15. Am I right?