syntax error in mongoMetricWriter.