Metric collectors in Ruby