extract metric group/type out of period-separated names