|
1 | 1 | #include "row_dispatcher.h" |
2 | 2 |
|
3 | 3 | #include "actors_factory.h" |
4 | | -#include "common.h" |
5 | 4 | #include "coordinator.h" |
6 | 5 | #include "leader_election.h" |
7 | 6 |
|
|
15 | 14 |
|
16 | 15 | #include <ydb/core/fq/libs/actors/logging/log.h> |
17 | 16 | #include <ydb/core/fq/libs/events/events.h> |
| 17 | +#include <ydb/core/fq/libs/metrics/sanitize_label.h> |
18 | 18 | #include <ydb/core/mon/mon.h> |
19 | 19 |
|
20 | 20 | #include <ydb/core/fq/libs/row_dispatcher/events/data_plane.h> |
@@ -598,7 +598,7 @@ void TRowDispatcher::UpdateMetrics() { |
598 | 598 |
|
599 | 599 | void TRowDispatcher::SetQueryMetrics(const TQueryStatKey& queryKey, ui64 unreadBytesMax, ui64 unreadBytesAvg, i64 readLagMessagesMax) { |
600 | 600 | auto queryGroup = Metrics.Counters->GetSubgroup("query_id", queryKey.QueryId); |
601 | | - auto topicGroup = queryGroup->GetSubgroup("read_group", CleanupCounterValueString(queryKey.ReadGroup)); |
| 601 | + auto topicGroup = queryGroup->GetSubgroup("read_group", SanitizeLabel(queryKey.ReadGroup)); |
602 | 602 | topicGroup->GetCounter("MaxUnreadBytes")->Set(unreadBytesMax); |
603 | 603 | topicGroup->GetCounter("AvgUnreadBytes")->Set(unreadBytesAvg); |
604 | 604 | topicGroup->GetCounter("MaxReadLag")->Set(readLagMessagesMax); |
@@ -740,7 +740,7 @@ void TRowDispatcher::Handle(NFq::TEvRowDispatcher::TEvStartSession::TPtr& ev) { |
740 | 740 | LOG_ROW_DISPATCHER_DEBUG("Received TEvStartSession from " << ev->Sender << ", read group " << ev->Get()->Record.GetSource().GetReadGroup() << ", topicPath " << ev->Get()->Record.GetSource().GetTopicPath() << |
741 | 741 | " part id " << ev->Get()->Record.GetPartitionId() << " query id " << ev->Get()->Record.GetQueryId() << " cookie " << ev->Cookie); |
742 | 742 | auto queryGroup = Metrics.Counters->GetSubgroup("query_id", ev->Get()->Record.GetQueryId()); |
743 | | - auto topicGroup = queryGroup->GetSubgroup("read_group", CleanupCounterValueString(ev->Get()->Record.GetSource().GetReadGroup())); |
| 743 | + auto topicGroup = queryGroup->GetSubgroup("read_group", SanitizeLabel(ev->Get()->Record.GetSource().GetReadGroup())); |
744 | 744 | topicGroup->GetCounter("StartSession", true)->Inc(); |
745 | 745 |
|
746 | 746 | NodesTracker.AddNode(ev->Sender.NodeId()); |
|
0 commit comments