diff --git a/be/src/vec/sink/writer/vtablet_writer.cpp b/be/src/vec/sink/writer/vtablet_writer.cpp index f554f03617..0b39065721 100644 --- a/be/src/vec/sink/writer/vtablet_writer.cpp +++ b/be/src/vec/sink/writer/vtablet_writer.cpp @@ -92,12 +92,18 @@ #include "vec/exprs/vexpr.h" #include "vec/sink/vtablet_block_convertor.h" #include "vec/sink/vtablet_finder.h" +#include "bvar/bvar.h" namespace doris { class TExpr; namespace vectorized { +bvar::Adder g_sink_write_bytes; +bvar::PerSecond> g_sink_write_bytes_per_second("sink_throughput_byte", &g_sink_write_bytes, 60); +bvar::Adder g_sink_write_rows; +bvar::PerSecond> g_sink_write_rows_per_second("sink_throughput_row", &g_sink_write_rows, 60); + Status IndexChannel::init(RuntimeState* state, const std::vector& tablets) { SCOPED_CONSUME_MEM_TRACKER(_index_channel_tracker.get()); for (auto& tablet : tablets) { @@ -1822,6 +1828,9 @@ Status VTabletWriter::append_block(doris::vectorized::Block& input_block) { for (const auto& index_channel : _channels) { RETURN_IF_ERROR(index_channel->check_intolerable_failure()); } + + g_sink_write_bytes << bytes; + g_sink_write_rows << rows; return Status::OK(); }