Remove unneeded stuff

This commit is contained in:
Thomas Roehl 2021-11-25 16:20:52 +01:00
parent f6a707ac31
commit 512fa44a74

View File

@ -15,47 +15,18 @@ type MetricGetter interface {
Init(config []byte) error Init(config []byte) error
Read(time.Duration, *[]lp.MutableMetric) Read(time.Duration, *[]lp.MutableMetric)
Close() Close()
// GetNodeMetric() map[string]interface{}
// GetSocketMetrics() map[int]map[string]interface{}
// GetCpuMetrics() map[int]map[string]interface{}
} }
type MetricCollector struct { type MetricCollector struct {
name string name string
init bool init bool
// node map[string]interface{}
// sockets map[int]map[string]interface{}
// cpus map[int]map[string]interface{}
} }
func (c *MetricCollector) Name() string { func (c *MetricCollector) Name() string {
return c.name 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 { 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 return nil
} }