hotfix for admin rpc metrics
Some checks are pending
abi-consistent-check / build-and-compare (push) Waiting to run
code-coverage / unittest-cov (push) Waiting to run
rust / check (push) Waiting to run
rust / test (push) Waiting to run
rust / lints (push) Waiting to run
functional-test / test (push) Waiting to run

This commit is contained in:
boqiu 2024-08-19 17:07:57 +08:00
parent 908ee156ca
commit c337ff90fb

View File

@ -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()),
);
}
}
}