feat: Process metrics storage in rethinkdb