From 512fa44a74161288ef465d972c316020c010d6fa Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Thu, 25 Nov 2021 16:20:52 +0100 Subject: [PATCH] Remove unneeded stuff --- collectors/metricCollector.go | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/collectors/metricCollector.go b/collectors/metricCollector.go index 13e8706..b403de8 100644 --- a/collectors/metricCollector.go +++ b/collectors/metricCollector.go @@ -15,47 +15,18 @@ type MetricGetter interface { Init(config []byte) error Read(time.Duration, *[]lp.MutableMetric) Close() - // GetNodeMetric() map[string]interface{} - // GetSocketMetrics() map[int]map[string]interface{} - // GetCpuMetrics() map[int]map[string]interface{} } type MetricCollector struct { name string init bool - // node map[string]interface{} - // sockets map[int]map[string]interface{} - // cpus map[int]map[string]interface{} } func (c *MetricCollector) Name() string { return c.name } -//func (c *MetricCollector) GetNodeMetric() map[string]interface{} { -// return c.node -//} - -//func (c *MetricCollector) GetSocketMetrics() map[int]map[string]interface{} { -// return c.sockets -//} - -//func (c *MetricCollector) GetCpuMetrics() map[int]map[string]interface{} { -// return c.cpus -//} - func (c *MetricCollector) setup() error { - // slist := SocketList() - // clist := CpuList() - // c.node = make(map[string]interface{}) - // c.sockets = make(map[int]map[string]interface{}, len(slist)) - // for _, s := range slist { - // c.sockets[s] = make(map[string]interface{}) - // } - // c.cpus = make(map[int]map[string]interface{}, len(clist)) - // for _, s := range clist { - // c.cpus[s] = make(map[string]interface{}) - // } return nil }