add metrics accessor to sample processors