[#718] first attempt at adding metrics

please review, is this expected style/implementation etc?