get metric in particular format