To set the tag value as dynamic, specify the tag’s value in the metric as “$tags”. See the API doc for more details.