Adding regex to resource metrics.