lib/metricize/forwarder.rb in metricize-0.5.1 vs lib/metricize/forwarder.rb in metricize-0.5.2
- old
+ new
@@ -87,13 +87,10 @@
end
value_groups.each do |key, values|
with_error_handling do
print_histogram(key, values)
end
- gauges << add_stat_by_key(key, values.size, '.count').merge(counter_attributes)
- gauges << add_stat_by_key(key, values.max, ".max")
- gauges << add_stat_by_key(key, values.min, ".min")
- [0.25, 0.50, 0.75, 0.95].each do |p|
+ [0.50, 0.95].each do |p|
percentile = values.extend(Stats).calculate_percentile(p)
gauges << add_stat_by_key(key, percentile, ".#{(p*100).to_i}e")
end
end
gauges << add_stat_by_key(@queue_name + '.measurements', value_groups.size)