From 731bedc4753fd80b9a8f7413a9d2a554c7b297bf Mon Sep 17 00:00:00 2001 From: malivin <58001840+malivin@users.noreply.github.com> Date: Tue, 29 Oct 2024 21:59:22 +0700 Subject: [PATCH] Fix "UP" collector metric type (#381) --- internal/collectors/nodeinfo/nodeinfo_collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/collectors/nodeinfo/nodeinfo_collector.go b/internal/collectors/nodeinfo/nodeinfo_collector.go index be4e4ba4..c3cce71f 100644 --- a/internal/collectors/nodeinfo/nodeinfo_collector.go +++ b/internal/collectors/nodeinfo/nodeinfo_collector.go @@ -129,7 +129,7 @@ func (collector *NodeinfoCollector) collectSingleInstance(client logstash_client metricsHelper.Labels = []string{endpoint} // ***** UP ***** - metricsHelper.NewIntMetric(collector.Up, prometheus.CounterValue, 1) + metricsHelper.NewIntMetric(collector.Up, prometheus.GaugeValue, 1) // ************** // ***** PIPELINE *****