Target manager assigns IDs to the targets. Sonar metric writer uess helper function to create all monitoring objects.