Add metrics to the framework