code: func (h *hawkularSink) pointToLabeledMetricHeader(ms *core.MetricSet, metric core.LabeledMetric, timestamp time.Time) (*metrics.MetricHeader, error) {
  
  	name := h.idName(ms, metric.Name)
  	if resourceID, found := metric.Labels[core.LabelResourceID.Key]; found {
  		name = h.idName(ms, metric.Name+separator+resourceID)
  	}
  
  	var value float64
  	if metric.ValueType == core.ValueInt64 {
  		value = float64(metric.IntValue)
  	} else {
  		value = float64(metric.FloatValue)
  	}
  
  	m := metrics.Datapoint{
  		Value:     value,
  		Timestamp: timestamp,
  	}
  
  	mh := &metrics.MetricHeader{
  		ID:   name,
  		Data: []metrics.Datapoint{m},
  		Type: heapsterTypeToHawkularType(metric.MetricType),
  	}
  
  	return mh, nil
  }
docs: // Converts Timeseries to metric structure used by the Hawkular