Added the ability to inject custom metric with external file