fix bug in metricStore. need to require kafka producer lib