diff --git a/metric/metric.go b/metric/metric.go index aa27eec..0d4b0ae 100644 --- a/metric/metric.go +++ b/metric/metric.go @@ -131,7 +131,7 @@ func init() { logger.Println("metrics are going to be generated for houston") go mc.metricWriter() NewMetric = newMetricImpl - ConcurrentUser = NewMetric(MetricGuage, "concurrent_user", "concurrent user count", map[string]string{"location": "lobby"}) + ConcurrentUser = NewMetric(MetricGuage, "concurrent_user", "concurrent user count", map[string]string{"game": "lobby"}) } else { logger.Println("metrics are NOT going to be generated. parent is not houston :", filename, string(fn)) } @@ -147,15 +147,6 @@ func newMetricImpl(mt MetricType, name string, help string, constLabels map[stri hash := md5.New() hash.Write([]byte(name)) - if constLabels == nil { - constLabels = make(map[string]string) - } - - hn, _ := os.Hostname() - sn := path.Base(os.Args[0]) - constLabels["hostname"] = hn - constLabels["service"] = sn - key := hex.EncodeToString(hash.Sum(nil))[:metric_key_size] temp, _ := json.Marshal(MetricDescription{ Key: key,