create a method for get a metric by name