add metricComsumerArg and Conf.registerMetricConsumer