From c337ff90fbfb644aa7f363973e1ae8c7e7c8af2d Mon Sep 17 00:00:00 2001 From: boqiu <82121246@qq.com> Date: Mon, 19 Aug 2024 17:07:57 +0800 Subject: [PATCH] hotfix for admin rpc metrics --- node/rpc/src/admin/impl.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/node/rpc/src/admin/impl.rs b/node/rpc/src/admin/impl.rs index 301adf4..ccad517 100644 --- a/node/rpc/src/admin/impl.rs +++ b/node/rpc/src/admin/impl.rs @@ -258,7 +258,10 @@ impl RpcServer for RpcServerImpl { match &maybe_prefix { Some(prefix) if !name.starts_with(prefix) => {} _ => { - result.insert(name.clone(), metric.get_value()); + result.insert( + name.clone(), + format!("{} {}", metric.get_type(), metric.get_value()), + ); } } }