Auto-adaptive thresholds for metric events