aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrigoriypisar <grigoriypisar@yandex-team.com>2023-09-11 13:13:45 +0300
committergrigoriypisar <grigoriypisar@yandex-team.com>2023-09-11 13:44:08 +0300
commita3d75ad65b40041ea3a683af8eb68969d159eb43 (patch)
treefa370bc512b5c7d116c62491b28693547e684e5a
parentd3c4d1c966550ea2ebb9b3345cbd5852eebd42e7 (diff)
downloadydb-a3d75ad65b40041ea3a683af8eb68969d159eb43.tar.gz
add http gateway counters
Passed counters
-rw-r--r--ydb/core/kqp/federated_query/kqp_federated_query_helpers.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/ydb/core/kqp/federated_query/kqp_federated_query_helpers.cpp b/ydb/core/kqp/federated_query/kqp_federated_query_helpers.cpp
index 665c036f3f..95a33616ee 100644
--- a/ydb/core/kqp/federated_query/kqp_federated_query_helpers.cpp
+++ b/ydb/core/kqp/federated_query/kqp_federated_query_helpers.cpp
@@ -2,6 +2,8 @@
#include <library/cpp/actors/http/http_proxy.h>
+#include <ydb/core/base/counters.h>
+
#include <ydb/core/fq/libs/actors/database_resolver.h>
#include <ydb/core/fq/libs/actors/proxy.h>
#include <ydb/core/fq/libs/db_id_async_resolver_impl/db_async_resolver_impl.h>
@@ -38,8 +40,11 @@ namespace NKikimr::NKqp {
const auto& queryServiceConfig = appConfig.GetQueryServiceConfig();
// Initialize HTTP Gateway
+ TIntrusivePtr<::NMonitoring::TDynamicCounters> httpGatewayGroup = GetServiceCounters(
+ appData->Counters, "utils")->GetSubgroup("subcomponent", "http_gateway");
+
HttpGatewayConfig = queryServiceConfig.HasHttpGateway() ? queryServiceConfig.GetHttpGateway() : DefaultHttpGatewayConfig();
- HttpGateway = NYql::IHTTPGateway::Make(&HttpGatewayConfig);
+ HttpGateway = NYql::IHTTPGateway::Make(&HttpGatewayConfig, httpGatewayGroup);
S3GatewayConfig = queryServiceConfig.GetS3();