ccu 메트릭은 각 서비스로 분리
This commit is contained in:
@ -106,7 +106,6 @@ func (mc *metricCollection) metricWriter() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var NewMetric func(MetricType, string, string, map[string]string) MetricWriter
|
var NewMetric func(MetricType, string, string, map[string]string) MetricWriter
|
||||||
var ConcurrentUser = MetricWriterNil
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
NewMetric = func(MetricType, string, string, map[string]string) MetricWriter {
|
NewMetric = func(MetricType, string, string, map[string]string) MetricWriter {
|
||||||
@ -131,7 +130,6 @@ func init() {
|
|||||||
logger.Println("metrics are going to be generated for houston")
|
logger.Println("metrics are going to be generated for houston")
|
||||||
go mc.metricWriter()
|
go mc.metricWriter()
|
||||||
NewMetric = newMetricImpl
|
NewMetric = newMetricImpl
|
||||||
ConcurrentUser = NewMetric(MetricGuage, "concurrent_user", "concurrent user count", map[string]string{"game": "lobby"})
|
|
||||||
} else {
|
} else {
|
||||||
logger.Println("metrics are NOT going to be generated. parent is not houston :", filename, string(fn))
|
logger.Println("metrics are NOT going to be generated. parent is not houston :", filename, string(fn))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user