Register metrics.