refact code
modify the metric config item issue