Skip to content

Commit

Permalink
Fix "UP" collector metric type (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
malivin authored Oct 29, 2024
1 parent 4ebd420 commit 731bedc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/collectors/nodeinfo/nodeinfo_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 *****
Expand Down

0 comments on commit 731bedc

Please sign in to comment.