mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 04:27:25 +01:00
Remove useless prints from MemstatCollector
This commit is contained in:
parent
ed511b7c09
commit
8849824ba9
@ -161,7 +161,6 @@ func (m *MemstatCollector) Init(config json.RawMessage) error {
|
|||||||
|
|
||||||
func (m *MemstatCollector) Read(interval time.Duration, output chan lp.CCMetric) {
|
func (m *MemstatCollector) Read(interval time.Duration, output chan lp.CCMetric) {
|
||||||
if !m.init {
|
if !m.init {
|
||||||
cclog.ComponentPrint(m.name, "Here")
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -220,14 +219,12 @@ func (m *MemstatCollector) Read(interval time.Duration, output chan lp.CCMetric)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if m.config.NodeStats {
|
if m.config.NodeStats {
|
||||||
cclog.ComponentInfo(m.name, MEMSTATFILE)
|
|
||||||
nodestats := getStats(MEMSTATFILE)
|
nodestats := getStats(MEMSTATFILE)
|
||||||
sendStats(nodestats, m.tags)
|
sendStats(nodestats, m.tags)
|
||||||
}
|
}
|
||||||
|
|
||||||
if m.config.NumaStats {
|
if m.config.NumaStats {
|
||||||
for _, nodeConf := range m.nodefiles {
|
for _, nodeConf := range m.nodefiles {
|
||||||
cclog.ComponentInfo(m.name, nodeConf.file)
|
|
||||||
stats := getStats(nodeConf.file)
|
stats := getStats(nodeConf.file)
|
||||||
sendStats(stats, nodeConf.tags)
|
sendStats(stats, nodeConf.tags)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user