Add regular expressions to parse metrics.