Implement plugin metrics.