refactor metric
modify the metric analyzer from Compatible