mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2026-03-10 18:47:30 +01:00
Switch from lp.NewMessage to lp.NewMetric
This commit is contained in:
@@ -185,7 +185,7 @@ func (m *SmartMonCollector) Read(interval time.Duration, output chan lp.CCMessag
|
||||
y.AddTag("stype-id", d)
|
||||
output <- y
|
||||
}
|
||||
y, err = lp.NewMessage(
|
||||
y, err = lp.NewMetric(
|
||||
"smartmon_power_cycles", m.tags, m.meta, data.HealthLog.PowerCycles, timestamp)
|
||||
if err == nil {
|
||||
y.AddTag("stype-id", d)
|
||||
|
||||
Reference in New Issue
Block a user