add valueformat and change the metricsRecord.py