Skip to content

Commit 23ece36

Browse files
authored
Init counter for pqv0 read session (24-3-11-hotfix) (#11000)
1 parent a24cc6d commit 23ece36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ydb/services/deprecated/persqueue_v0/grpc_pq_read_actor.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,8 @@ void TReadSessionActor::SetupTopicCounters(const TTopicConverterPtr& topic)
897897
topicCounters.Errors = NKikimr::NPQ::TMultiCounter(subGroup, aggr, cons, {"PartitionsErrors"}, true);
898898
topicCounters.Commits = NKikimr::NPQ::TMultiCounter(subGroup, aggr, cons, {"Commits"}, true);
899899
topicCounters.WaitsForData = NKikimr::NPQ::TMultiCounter(subGroup, aggr, cons, {"WaitsForData"}, true);
900+
901+
SetupBytesReadByUserAgentCounter();
900902
}
901903

902904
void TReadSessionActor::SetupTopicCounters(const TTopicConverterPtr& topic, const TString& cloudId,
@@ -915,6 +917,8 @@ void TReadSessionActor::SetupTopicCounters(const TTopicConverterPtr& topic, cons
915917
topicCounters.PartitionsInfly = NKikimr::NPQ::TMultiCounter(subGroup, {}, subgroups, {"api.grpc.topic.stream_read.partition_session.count"}, false, "name");
916918
topicCounters.Errors = NKikimr::NPQ::TMultiCounter(subGroup, {}, subgroups, {"api.grpc.topic.stream_read.partition_session.errors"}, true, "name");
917919
topicCounters.Commits = NKikimr::NPQ::TMultiCounter(subGroup, {}, subgroups, {"api.grpc.topic.stream_read.commits"}, true, "name");
920+
921+
SetupBytesReadByUserAgentCounter();
918922
}
919923

920924
void TReadSessionActor::Handle(V1::TEvPQProxy::TEvAuthResultOk::TPtr& ev, const TActorContext& ctx) {

0 commit comments

Comments
 (0)