adding metrics endpoint