Upgrade to metrics library v3.0.1

These are the changes required to upgrade the metrics library to the new version (3.0.1).
The new metrics version includes changes in namespace and interfaces.