Flatten the metrics array