Set metric.