Get json formatted data for a metric
Rename to metric
Get metric script and average