Function gatherMetricViolations