Switch from lp.NewMessage to lp.NewMetric

This commit is contained in:
Holger Obermaier
2026-03-06 10:01:30 +01:00
parent 6a290f1a4c
commit f716605f9f

View File

@@ -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)