PIM-1530: Filter by metrics

Bug fix: [no]
Feature addition: [yes]
Backwards compatibility break: [no]
Unit test passes: [yes]
Behat scenarios passes: [yes|no]
Checkstyle issues: [no]*
ChangeLog updated: [yes]
Fixes the following jira:
 - PIM-1530
 - PIM-1628