remove groupingType filed and get it from the metric as follow
  metricName:aggregationType
  wait:avg
  errors:sum