Failed jobs thresholds

Add configurabe thresholds for failed-jobs monitoring