I need to filter out metrics based on the list that is passed, it should not list other metrics that are not passed in list. how can we write any script for it.