Added filtering to Metrics example.