Skip to content

Commit 86bd0fd

Browse files
authored
Statistics refactoring (#7096)
1 parent 79dfd37 commit 86bd0fd

26 files changed

+354
-231
lines changed

ydb/core/driver_lib/run/kikimr_services_initializers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122

123123
#include <ydb/core/sys_view/processor/processor.h>
124124
#include <ydb/core/sys_view/service/sysview_service.h>
125-
#include <ydb/core/statistics/stat_service.h>
125+
#include <ydb/core/statistics/service/service.h>
126126
#include <ydb/core/statistics/aggregator/aggregator.h>
127127

128128
#include <ydb/core/tablet/bootstrapper.h>

ydb/core/driver_lib/run/ya.make

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ PEERDIR(
9898
ydb/core/scheme_types
9999
ydb/core/security
100100
ydb/core/security/ldap_auth_provider
101-
ydb/core/statistics
102101
ydb/core/statistics/aggregator
102+
ydb/core/statistics/service
103103
ydb/core/sys_view/processor
104104
ydb/core/sys_view/service
105105
ydb/core/tablet

ydb/core/kqp/gateway/kqp_metadata_loader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <ydb/core/kqp/federated_query/kqp_federated_query_actors.h>
77
#include <ydb/core/kqp/gateway/utils/scheme_helpers.h>
88
#include <ydb/core/statistics/events.h>
9-
#include <ydb/core/statistics/stat_service.h>
9+
#include <ydb/core/statistics/service/service.h>
1010

1111
#include <ydb/library/actors/core/hfunc.h>
1212
#include <ydb/library/actors/core/log.h>

ydb/core/kqp/gateway/ya.make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ PEERDIR(
2020
ydb/core/kqp/gateway/behaviour/resource_pool
2121
ydb/core/kqp/gateway/behaviour/view
2222
ydb/core/kqp/gateway/utils
23+
ydb/core/statistics/service
2324
ydb/library/yql/providers/result/expr_nodes
2425
)
2526

ydb/core/statistics/aggregator/aggregator_impl.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#include "aggregator_impl.h"
22

3+
#include <ydb/core/statistics/database/database.h>
4+
#include <ydb/core/statistics/service/service.h>
5+
36
#include <ydb/core/engine/minikql/flat_local_tx_factory.h>
4-
#include <ydb/core/statistics/save_load_stats.h>
5-
#include <ydb/core/statistics/stat_service.h>
67
#include <ydb/core/protos/feature_flags.pb.h>
78
#include <ydb/core/tx/datashard/datashard.h>
89
#include <ydb/core/tx/scheme_cache/scheme_cache.h>

ydb/core/statistics/aggregator/tx_aggr_stat_response.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "aggregator_impl.h"
22

3-
#include <ydb/core/statistics/stat_service.h>
3+
#include <ydb/core/statistics/service/service.h>
44

55
namespace NKikimr::NStat {
66

ydb/core/statistics/aggregator/tx_response_tablet_distribution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "aggregator_impl.h"
22

33
#include <ydb/core/protos/hive.pb.h>
4-
#include <ydb/core/statistics/stat_service.h>
4+
#include <ydb/core/statistics/service/service.h>
55

66
namespace NKikimr::NStat {
77

ydb/core/statistics/aggregator/ya.make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ PEERDIR(
2929
ydb/core/protos
3030
ydb/core/tablet
3131
ydb/core/tablet_flat
32+
ydb/core/statistics/database
3233
ydb/library/minsketch
3334
)
3435

ydb/core/statistics/save_load_stats.cpp renamed to ydb/core/statistics/database/database.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#include "save_load_stats.h"
1+
#include "database.h"
22

3-
#include "events.h"
3+
#include <ydb/core/statistics/events.h>
44

55
#include <ydb/library/table_creator/table_creator.h>
66
#include <ydb/library/query_actor/query_actor.h>

0 commit comments

Comments
 (0)