Mutate rename using field value

I managed to figure this out by using %[@metadata][metric_name] in mutate