1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
|
# File 'lib/fluent/plugin/output.rb', line 1298
def check_slow_flush(start)
elapsed_time = Fluent::Clock.now - start
elapsed_millsec = (elapsed_time * 1000).to_i
@flush_time_count_metrics.add(elapsed_millsec)
if elapsed_time > @slow_flush_log_threshold
@slow_flush_count_metrics.inc
log.warn "buffer flush took longer time than slow_flush_log_threshold:",
elapsed_time: elapsed_time, slow_flush_log_threshold: @slow_flush_log_threshold, plugin_id: self.plugin_id
end
end
|