First version of the metrics mapper

First version of the metrics mapper.