code: func InitMetrics(statsd string) error {
  	hostname, err := os.Hostname()
  	if err != nil {
  		return err
  	}
  	Client = Metrics{StatsdAddr: statsd, Hostname: utils.CleanStatsdMetrics(hostname)}
  
  	Client.MemoryCapacity = prometheus.NewGaugeVec(prometheus.GaugeOpts{
  		Name: "memory_capacity",
  		Help: "node available memory.",
  	}, []string{"nodename"})
  
  	Client.DeployCount = prometheus.NewCounterVec(prometheus.CounterOpts{
  		Name: "core_deploy",
  		Help: "core deploy counter",
  	}, []string{"hostname"})
  
  	Client.CPUMap = prometheus.NewGaugeVec(prometheus.GaugeOpts{
  		Name: "cpu_map",
  		Help: "node available cpu.",
  	}, []string{"nodename", "cpuid"})
  
  	prometheus.MustRegister(Client.DeployCount, Client.MemoryCapacity, Client.CPUMap)
  	return nil
  }
docs: // InitMetrics new a metrics obj