Use maven dependency for Metrics