diff options
author | Håvard Pettersen <havardpe@oath.com> | 2019-08-29 13:28:40 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2019-08-29 13:28:40 +0000 |
commit | 76b389f2477812e9f37145f5e59cce70cc83df19 (patch) | |
tree | 986c3baa41d423e09cb566b51084949710c1364b /searchcore | |
parent | f1991f6ef4901dc3d8099e779c5f629450d9c3ed (diff) |
add search protocol metrics
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/server/proton.cpp | 1 | ||||
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/server/rpc_hooks.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/proton.cpp b/searchcore/src/vespa/searchcore/proton/server/proton.cpp index 5db499601f3..58313f17235 100644 --- a/searchcore/src/vespa/searchcore/proton/server/proton.cpp +++ b/searchcore/src/vespa/searchcore/proton/server/proton.cpp @@ -321,6 +321,7 @@ Proton::init(const BootstrapConfig::SP & configSnapshot) RPCHooks::Params rpcParams(*this, protonConfig.rpcport, _configUri.getConfigId()); rpcParams.slobrok_config = _configUri.createWithNewId(protonConfig.slobrokconfigid); _rpcHooks = std::make_unique<RPCHooks>(rpcParams); + _metricsEngine->addExternalMetrics(_rpcHooks->proto_rpc_adapter_metrics()); waitForInitDone(); diff --git a/searchcore/src/vespa/searchcore/proton/server/rpc_hooks.h b/searchcore/src/vespa/searchcore/proton/server/rpc_hooks.h index 21b433acf7b..78e3c5d3f3c 100644 --- a/searchcore/src/vespa/searchcore/proton/server/rpc_hooks.h +++ b/searchcore/src/vespa/searchcore/proton/server/rpc_hooks.h @@ -99,6 +99,7 @@ public: RPCHooksBase(const RPCHooksBase &) = delete; RPCHooksBase & operator = (const RPCHooksBase &) = delete; RPCHooksBase(Params ¶ms); + auto &proto_rpc_adapter_metrics() { return _proto_rpc_adapter->metrics(); } void set_online(); virtual ~RPCHooksBase(); void close(); |