mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-03-13 18:25:55 +01:00
Fix format
This commit is contained in:
parent
b06572c865
commit
486df91a9d
@ -14,17 +14,17 @@ type MetricGetter interface {
|
|||||||
Init() error
|
Init() error
|
||||||
Read(time.Duration, *[]lp.MutableMetric)
|
Read(time.Duration, *[]lp.MutableMetric)
|
||||||
Close()
|
Close()
|
||||||
// GetNodeMetric() map[string]interface{}
|
// GetNodeMetric() map[string]interface{}
|
||||||
// GetSocketMetrics() map[int]map[string]interface{}
|
// GetSocketMetrics() map[int]map[string]interface{}
|
||||||
// GetCpuMetrics() 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{}
|
// node map[string]interface{}
|
||||||
// sockets map[int]map[string]interface{}
|
// sockets map[int]map[string]interface{}
|
||||||
// cpus map[int]map[string]interface{}
|
// cpus map[int]map[string]interface{}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *MetricCollector) Name() string {
|
func (c *MetricCollector) Name() string {
|
||||||
@ -44,17 +44,17 @@ func (c *MetricCollector) Name() string {
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
func (c *MetricCollector) setup() error {
|
func (c *MetricCollector) setup() error {
|
||||||
// slist := SocketList()
|
// slist := SocketList()
|
||||||
// clist := CpuList()
|
// clist := CpuList()
|
||||||
// c.node = make(map[string]interface{})
|
// c.node = make(map[string]interface{})
|
||||||
// c.sockets = make(map[int]map[string]interface{}, len(slist))
|
// c.sockets = make(map[int]map[string]interface{}, len(slist))
|
||||||
// for _, s := range slist {
|
// for _, s := range slist {
|
||||||
// c.sockets[s] = make(map[string]interface{})
|
// c.sockets[s] = make(map[string]interface{})
|
||||||
// }
|
// }
|
||||||
// c.cpus = make(map[int]map[string]interface{}, len(clist))
|
// c.cpus = make(map[int]map[string]interface{}, len(clist))
|
||||||
// for _, s := range clist {
|
// for _, s := range clist {
|
||||||
// c.cpus[s] = make(map[string]interface{})
|
// c.cpus[s] = make(map[string]interface{})
|
||||||
// }
|
// }
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user