diff --git a/src/v/redpanda/application.cc b/src/v/redpanda/application.cc index 780a7c23a56c4..18c16c0b755e0 100644 --- a/src/v/redpanda/application.cc +++ b/src/v/redpanda/application.cc @@ -294,8 +294,11 @@ void application::initialize( } _scheduling_groups.create_groups().get(); - _deferred.emplace_back( - [this] { _scheduling_groups.destroy_groups().get(); }); + _scheduling_groups_probe.wire_up(_scheduling_groups); + _deferred.emplace_back([this] { + _scheduling_groups_probe.clear(); + _scheduling_groups.destroy_groups().get(); + }); if (proxy_cfg) { _proxy_config.emplace(*proxy_cfg); diff --git a/src/v/redpanda/application.h b/src/v/redpanda/application.h index c88bc13e916d0..f089fa6c3a0c2 100644 --- a/src/v/redpanda/application.h +++ b/src/v/redpanda/application.h @@ -31,6 +31,7 @@ #include "redpanda/admin_server.h" #include "resource_mgmt/cpu_scheduling.h" #include "resource_mgmt/memory_groups.h" +#include "resource_mgmt/scheduling_groups_probe.h" #include "resource_mgmt/smp_groups.h" #include "rpc/fwd.h" #include "seastarx.h" @@ -157,6 +158,7 @@ class application { _schema_reg_config; std::optional _schema_reg_client_config; scheduling_groups _scheduling_groups; + scheduling_groups_probe _scheduling_groups_probe; ss::logger _log; ss::sharded _connection_cache;