Get rid of invalid metric in sql collector