def METHOD_NAME(self, base_path, target_addrs, ele_type):
    targets_path = os.path.join(base_path, self.PROM_DIR, self.TARGET_FILES[ele_type])
    target_config = [{'targets': target_addrs}]
    write_file(targets_path, yaml.dump(target_config, default_flow_style=False))