feat: expose tx_queue_len metric (#2330)

This metric shows how much the transaction queue of dragonfly is loaded.
Also, output free text, human intended replies as verbatim.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2023-12-24 11:31:50 +02:00 committed by GitHub
parent f90317a795
commit 8bd43497f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 13 deletions

View file

@ -149,7 +149,7 @@ void MemoryCmd::Run(CmdArgList args) {
string res = shard_set->pool()->at(tid)->AwaitBrief([=] { return MallocStats(backing, tid); });
auto* rb = static_cast<RedisReplyBuilder*>(cntx_->reply_builder());
return rb->SendBulkString(res);
return rb->SendVerbatimString(res);
}
string err = UnknownSubCmd(sub_cmd, "MEMORY");