Add API to retrieve current metrics.