Skip to content

Commit

Permalink
FQ: Reduce buckets in histogram sensors (#13494)
Browse files Browse the repository at this point in the history
  • Loading branch information
kardymonds authored Jan 20, 2025
1 parent b8a31f4 commit 1cd7fb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ydb/core/fq/libs/row_dispatcher/topic_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct TTopicSessionMetrics {
ReconnectRate = PartitionGroup->GetCounter("ReconnectRate", true);
RestartSessionByOffsets = PartitionGroup->GetCounter("RestartSessionByOffsets", true);
SessionDataRate = PartitionGroup->GetCounter("SessionDataRate", true);
WaitEventTimeMs = PartitionGroup->GetHistogram("WaitEventTimeMs", NMonitoring::ExponentialHistogram(13, 2, 1)); // ~ 1ms -> ~ 8s
WaitEventTimeMs = PartitionGroup->GetHistogram("WaitEventTimeMs", NMonitoring::ExplicitHistogram({5, 20, 100, 500, 2000}));
UnreadBytes = PartitionGroup->GetCounter("UnreadBytes");
}

Expand Down
2 changes: 1 addition & 1 deletion ydb/library/yql/providers/pq/async_io/dq_pq_read_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class TDqPqReadActor : public NActors::TActor<TDqPqReadActor>, public NYql::NDq:
AsyncInputDataRate = task->GetCounter("AsyncInputDataRate", true);
ReconnectRate = task->GetCounter("ReconnectRate", true);
DataRate = task->GetCounter("DataRate", true);
WaitEventTimeMs = source->GetHistogram("WaitEventTimeMs", NMonitoring::ExponentialHistogram(13, 2, 1)); // ~ 1ms -> ~ 8s
WaitEventTimeMs = source->GetHistogram("WaitEventTimeMs", NMonitoring::ExplicitHistogram({5, 20, 100, 500, 2000}));
}

~TMetrics() {
Expand Down

0 comments on commit 1cd7fb3

Please sign in to comment.