code: func toStats(mm producers.MetricsMessage, ddURL string) error {
  	c, err := statsd.New(ddURL)
  	if err != nil {
  		return err
  	}
  
  	c.Namespace = "dcos-metrics"
  
  	tags, err := buildTags(mm.Dimensions)
  	if err != nil {
  		return err
  	}
  
  	for _, dp := range mm.Datapoints {
  		name := strings.Join([]string{mm.Name, dp.Name}, producers.MetricNamespaceSep)
  		val, ok := dp.Value.(float64)
  		if !ok {
  			return errors.New("Datapoint can not be coerced to float64")
  		}
  
  		err = c.Gauge(name, val, tags, 1)
  		if err != nil {
  			return err
  		}
  	}
  
  	return nil
  }
docs: /*** Helpers ***/