may be it would be good for performance to fetch custom metrics for tests, and for task groups separately.