Update metric.rb to use URI