code: func (m *Metrics) SendNodeInfo(node *types.Node) {
  	log.Debugf("[Metrics] Update %s memory capacity gauge", node.Name)
  	nodename := utils.CleanStatsdMetrics(node.Name)
  	memory := float64(node.MemCap)
  
  	if m.MemoryCapacity != nil {
  		m.MemoryCapacity.WithLabelValues(nodename).Set(memory)
  	}
  
  	for cpuid, value := range node.CPU {
  		val := float64(value)
  		key := fmt.Sprintf(cpuMap, nodename, cpuid)
  		if m.CPUMap != nil {
  			m.CPUMap.WithLabelValues(nodename, cpuid).Set(val)
  		}
  		if m.StatsdAddr == "" {
  			continue
  		}
  		if err := m.gauge(key, val); err != nil {
  			log.Errorf("[SendNodeInfo] Error occurred while sending data to statsd: %v", err)
  		}
  	}
  
  	if m.StatsdAddr == "" {
  		return
  	}
  	key := fmt.Sprintf(memStats, nodename)
  	if err := m.gauge(key, memory); err != nil {
  		log.Errorf("[SendNodeInfo] Error occurred while sending data to statsd: %v", err)
  	}
  }
docs: // SendNodeInfo update node resource capacity