To set the source as dynamic, specify the source name in the metric as the percent sign “%”. See the API doc for more details.