added api for collecting domains metrics