code: func stdoutConnector(metrics []producers.MetricsMessage, c *cli.Context) error {
  	if len(metrics) == 0 {
  		log.Info("No messages received from metrics service")
  		return nil
  	}
  	for _, message := range metrics {
  		dimensions := &message.Dimensions
  
  		// we print a few potentially interesting dimensions
  		log.Infof("Metrics from task %s, framework %s, host %s", dimensions.ExecutorID, dimensions.FrameworkName, dimensions.Hostname)
  		if len(dimensions.Labels) > 0 {
  			log.Infof("Labels: %v", dimensions.Labels)
  		}
  
  		log.Info("Datapoints:")
  		for _, datapoint := range message.Datapoints {
  			// For clarity, we don't print timestamp or tags here.
  			log.Infof("  %s: %v", datapoint.Name, datapoint.Value)
  		}
  	}
  
  	return nil
  }
docs: // stdoutConnector will be called each time a new set of metrics messages
  // is received. It simply prints each message.