code: func datapointLabelsByName(s store.Store) map[string][]datapointLabels {
  	rval := map[string][]datapointLabels{}
  
  	for _, obj := range s.Objects() {
  		m, ok := obj.(producers.MetricsMessage)
  		if !ok {
  			promLog.Warnf("Unsupported message type %T", obj)
  			continue
  		}
  
  		// For each datapoint, collect its labels and add an entry to rval.
  		dims := dimsToMap(m.Dimensions)
  		for _, d := range m.Datapoints {
  			labels := map[string]string{}
  			for k, v := range dims {
  				labels[k] = v
  			}
  			for k, v := range d.Tags {
  				labels[k] = v
  			}
  			rval[d.Name] = append(rval[d.Name], datapointLabels{&d, labels})
  		}
  	}
  
  	return rval
  }
docs: // datapointLabelsByName returns a mapping of datapoint names to a slice of structs pairing producers.Datapoints by that
  // name with their corresponding labels. Labels are derived from MetricsMessage dimensions and Datapoint tags.