Add "sourceFromPrefix" support to infer the instance name from the metric prefix.