Skip to content

Commit

Permalink
Merge 46ad368 into fa346a5
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoriyPA authored Dec 27, 2024
2 parents fa346a5 + 46ad368 commit fca0d70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ydb/library/yql/providers/pq/async_io/dq_pq_rd_read_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ struct TRowDispatcherReadActorMetrics {
explicit TRowDispatcherReadActorMetrics(const TTxId& txId, ui64 taskId, const ::NMonitoring::TDynamicCounterPtr& counters)
: TxId(std::visit([](auto arg) { return ToString(arg); }, txId))
, Counters(counters) {
SubGroup = Counters->GetSubgroup("sink", "RdPqRead");
auto sink = SubGroup->GetSubgroup("tx_id", TxId);
auto task = sink->GetSubgroup("task_id", ToString(taskId));
SubGroup = Counters->GetSubgroup("source", "RdPqRead");
auto source = SubGroup->GetSubgroup("tx_id", TxId);
auto task = source->GetSubgroup("task_id", ToString(taskId));
InFlyGetNextBatch = task->GetCounter("InFlyGetNextBatch");
InFlyAsyncInputData = task->GetCounter("InFlyAsyncInputData");
}
Expand Down
8 changes: 4 additions & 4 deletions ydb/library/yql/providers/pq/async_io/dq_pq_read_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ class TDqPqReadActor : public NActors::TActor<TDqPqReadActor>, public NYql::NDq:
TMetrics(const TTxId& txId, ui64 taskId, const ::NMonitoring::TDynamicCounterPtr& counters)
: TxId(std::visit([](auto arg) { return ToString(arg); }, txId))
, Counters(counters) {
SubGroup = Counters->GetSubgroup("sink", "PqRead");
auto sink = SubGroup->GetSubgroup("tx_id", TxId);
auto task = sink->GetSubgroup("task_id", ToString(taskId));
SubGroup = Counters->GetSubgroup("source", "PqRead");
auto source = SubGroup->GetSubgroup("tx_id", TxId);
auto task = source->GetSubgroup("task_id", ToString(taskId));
InFlyAsyncInputData = task->GetCounter("InFlyAsyncInputData");
InFlySubscribe = task->GetCounter("InFlySubscribe");
AsyncInputDataRate = task->GetCounter("AsyncInputDataRate", true);
ReconnectRate = task->GetCounter("ReconnectRate", true);
DataRate = task->GetCounter("DataRate", true);
WaitEventTimeMs = sink->GetHistogram("WaitEventTimeMs", NMonitoring::ExponentialHistogram(13, 2, 1)); // ~ 1ms -> ~ 8s
WaitEventTimeMs = source->GetHistogram("WaitEventTimeMs", NMonitoring::ExponentialHistogram(13, 2, 1)); // ~ 1ms -> ~ 8s
}

~TMetrics() {
Expand Down

0 comments on commit fca0d70

Please sign in to comment.