code cleanup
cleanup metric_archive
cleanup metric_notify
rmove uesless check

cleanup metric_statistic
bugfix & code cleanup