move metric print to main.go