summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2025-08-22 15:56:23 +0300
committerrobot-piglet <[email protected]>2025-08-22 16:12:57 +0300
commit38e90e197769039ec0dcbc1ff52996ed21916e94 (patch)
tree317eb82444a42361e208ccbb8e1d501c4b05cbdf
parent46353fdbb6821d7aef22f4b0f7c5be8fcaa07b4f (diff)
Intermediate changes
commit_hash:898e576ab8c0de6fbb1d91b474d77ce07666e78e
-rw-r--r--contrib/restricted/uriparser/.yandex_meta/__init__.py2
-rw-r--r--yt/yt/core/service_discovery/yp/config.cpp3
-rw-r--r--yt/yt/core/service_discovery/yp/config.h2
-rw-r--r--yt/yt/core/service_discovery/yp/service_discovery.h4
4 files changed, 10 insertions, 1 deletions
diff --git a/contrib/restricted/uriparser/.yandex_meta/__init__.py b/contrib/restricted/uriparser/.yandex_meta/__init__.py
index 942b5dc5563..50416eeafb5 100644
--- a/contrib/restricted/uriparser/.yandex_meta/__init__.py
+++ b/contrib/restricted/uriparser/.yandex_meta/__init__.py
@@ -23,7 +23,7 @@ def uriparser_post_install(self):
uriparser = CMakeNinjaNixProject(
- owners=["g:mds", "g:cpp-contrib"],
+ owners=["g:cpp-contrib"],
arcdir="contrib/restricted/uriparser",
nixattr="uriparser",
put={"testrunner": "test"},
diff --git a/yt/yt/core/service_discovery/yp/config.cpp b/yt/yt/core/service_discovery/yp/config.cpp
index e1d434d2837..59ca4472aed 100644
--- a/yt/yt/core/service_discovery/yp/config.cpp
+++ b/yt/yt/core/service_discovery/yp/config.cpp
@@ -11,6 +11,9 @@ void TServiceDiscoveryConfig::Register(TRegistrar registrar)
registrar.Parameter("enable", &TThis::Enable)
.Default(GetServiceDiscoveryEnableDefault());
+ registrar.Parameter("enable_metrics", &TThis::EnableMetrics)
+ .Default(false);
+
registrar.Parameter("fqdn", &TThis::Fqdn)
.Default("sd.yandex.net");
registrar.Parameter("grpc_port", &TThis::GrpcPort)
diff --git a/yt/yt/core/service_discovery/yp/config.h b/yt/yt/core/service_discovery/yp/config.h
index f87a62b7d59..99e6bec7a1b 100644
--- a/yt/yt/core/service_discovery/yp/config.h
+++ b/yt/yt/core/service_discovery/yp/config.h
@@ -16,6 +16,8 @@ struct TServiceDiscoveryConfig
{
bool Enable;
+ bool EnableMetrics;
+
//! Provider endpoint.
TString Fqdn;
int GrpcPort;
diff --git a/yt/yt/core/service_discovery/yp/service_discovery.h b/yt/yt/core/service_discovery/yp/service_discovery.h
index 0a654e962f5..cb253da6983 100644
--- a/yt/yt/core/service_discovery/yp/service_discovery.h
+++ b/yt/yt/core/service_discovery/yp/service_discovery.h
@@ -2,6 +2,7 @@
#include "public.h"
+#include <yt/yt/library/profiling/sensor.h>
#include <yt/yt/core/service_discovery/service_discovery.h>
namespace NYT::NServiceDiscovery::NYP {
@@ -22,6 +23,9 @@ namespace NYT::NServiceDiscovery::NYP {
*/
IServiceDiscoveryPtr CreateServiceDiscovery(TServiceDiscoveryConfigPtr config);
+
+IServiceDiscoveryPtr CreateServiceDiscovery(TServiceDiscoveryConfigPtr config, NProfiling::TProfiler profiler);
+
////////////////////////////////////////////////////////////////////////////////
//! Returns whether YPSD should be enabled by default, i.e. it is not