Skip to content

Commit 65a6109

Browse files
Fix gauge type correctly in pipelines metrics. (#18082) (#18087)
(cherry picked from commit 5fb5634) Co-authored-by: Mashhur <[email protected]>
1 parent 1fd7b06 commit 65a6109

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

logstash-core/lib/logstash/config/pipelines_info.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ def self.format_pipeline_vertex_section_stats(stats, pipeline)
7373

7474
(stats || {}).reduce([]) do |acc, kv|
7575
plugin_id, plugin_stats = kv
76-
77-
props = Hash.new {|h, k| h[k] = []}
7876
next unless plugin_stats
7977

8078
flattened = flatten_metrics(plugin_stats)
@@ -93,7 +91,7 @@ def self.format_pipeline_vertex_section_stats(stats, pipeline)
9391

9492
nested_type = if type_sym == :"counter/long"
9593
:long_counters
96-
elsif type_sym == :"gauge/numeric"
94+
elsif type_sym == :"gauge/number"
9795
:double_gauges
9896
else
9997
nil

0 commit comments

Comments
 (0)