add filtered metrics implementation