Skip to content

Commit

Permalink
Follow Fluentd's core metrics mechanism change
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
  • Loading branch information
cosmo0920 committed Aug 2, 2021
1 parent 5a6360a commit 0e5d768
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/fluent/plugin/in_prometheus_output_monitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,16 @@ def update_monitor_info

# output metrics
'retry_count' => @metrics[:retry_counts],
# Needed since Fluentd v1.14 due to metrics extensions.
'num_errors' => @metrics[:num_errors],
'write_count' => @metrics[:write_count],
'emit_count' => @metrics[:emit_count],
'emit_records' => @metrics[:emit_records],
'rollback_count' => @metrics[:rollback_count],
'flush_time_count' => @metrics[:flush_time_count],
'slow_flush_count' => @metrics[:slow_flush_count],
}
# No needed for Fluentd v1.14 but leave as-is for backward compatibility.
instance_vars_info = {
num_errors: @metrics[:num_errors],
write_count: @metrics[:write_count],
Expand Down

0 comments on commit 0e5d768

Please sign in to comment.