Skip to content

Commit

Permalink
Change event-related metrics from counters to gauges (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuskoman authored Mar 5, 2024
1 parent 3c0045c commit 81404ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/collectors/nodestats/nodestats_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ func (collector *NodestatsCollector) collectSingleInstance(client logstash_clien

// ************ EVENTS ************
eventsStats := nodeStats.Events
metricsHelper.NewUInt64Metric(collector.EventsIn, prometheus.CounterValue, eventsStats.In)
metricsHelper.NewUInt64Metric(collector.EventsFiltered, prometheus.CounterValue, eventsStats.Filtered)
metricsHelper.NewUInt64Metric(collector.EventsOut, prometheus.CounterValue, eventsStats.Out)
metricsHelper.NewUInt64Metric(collector.EventsIn, prometheus.GaugeValue, eventsStats.In)
metricsHelper.NewUInt64Metric(collector.EventsFiltered, prometheus.GaugeValue, eventsStats.Filtered)
metricsHelper.NewUInt64Metric(collector.EventsOut, prometheus.GaugeValue, eventsStats.Out)
metricsHelper.NewUInt64Metric(collector.EventsDurationInMillis, prometheus.GaugeValue, eventsStats.DurationInMillis)
metricsHelper.NewUInt64Metric(collector.EventsQueuePushDurationInMillis, prometheus.GaugeValue, eventsStats.QueuePushDurationInMillis)
// ********************************
Expand Down

0 comments on commit 81404ad

Please sign in to comment.