added metadata to output of metrics