mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add counters to track nodestore read and write activities.
This commit is contained in:
committed by
Vinnie Falco
parent
c0b69e8ef7
commit
ec4ec48fb8
@@ -85,6 +85,12 @@ Json::Value doGetCounts (RPC::Context& context)
|
||||
textTime (uptime, s, "minute", 60);
|
||||
textTime (uptime, s, "second", 1);
|
||||
ret["uptime"] = uptime;
|
||||
|
||||
ret["node_writes"] = app.getNodeStore().getStoreCount();
|
||||
ret["node_reads_total"] = app.getNodeStore().getFetchTotalCount();
|
||||
ret["node_reads_hit"] = app.getNodeStore().getFetchHitCount();
|
||||
ret["node_written_bytes"] = app.getNodeStore().getStoreSize();
|
||||
ret["node_read_bytes"] = app.getNodeStore().getFetchSize();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user