use level-trigger in checkMetrics logic