backport fix to ignore trailing args in aliasByMetric(), refs #862
Merge pull request #885 from obfuscurity/backport_fix_trailing_commas_aliasByMetric

Backport fix to ignore trailing args in aliasByMetric() for 0.9.x