From f716605f9f0126727bcdc31dc6e744529a845824 Mon Sep 17 00:00:00 2001 From: Holger Obermaier <40787752+ho-ob@users.noreply.github.com> Date: Fri, 6 Mar 2026 10:01:30 +0100 Subject: [PATCH] Switch from lp.NewMessage to lp.NewMetric --- collectors/smartmonMetric.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collectors/smartmonMetric.go b/collectors/smartmonMetric.go index 564bf70..328286b 100644 --- a/collectors/smartmonMetric.go +++ b/collectors/smartmonMetric.go @@ -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)