Update the metrics API