Efficiently collect massive volumes of metrics inside the Erlang VM