Extract metrics