Added metrics definition API to all data sources.