Enhancing NBI to define APIs for metric collection