Added a way to configure Metrics reporting without changing application
code.