Skip to content

Commit

Permalink
add_backlogSize_in_topicStat (apache#5914)
Browse files Browse the repository at this point in the history
(cherry picked from commit d1d5cf7)
  • Loading branch information
k2la authored and tuteng committed Mar 21, 2020
1 parent 0f44118 commit 33b2e24
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,8 @@ public void updateRates(NamespaceStats nsStats, NamespaceBundleStats bundleStats
topicStatsStream.writePair("msgRateOut", topicStatsHelper.aggMsgRateOut);
topicStatsStream.writePair("msgThroughputIn", topicStatsHelper.aggMsgThroughputIn);
topicStatsStream.writePair("msgThroughputOut", topicStatsHelper.aggMsgThroughputOut);
topicStatsStream.writePair("storageSize", ledger.getEstimatedBacklogSize());
topicStatsStream.writePair("storageSize", ledger.getTotalSize());
topicStatsStream.writePair("backlogSize", ledger.getEstimatedBacklogSize());
topicStatsStream.writePair("pendingAddEntriesCount", ((ManagedLedgerImpl) ledger).getPendingAddEntriesCount());

nsStats.msgRateIn += topicStatsHelper.aggMsgRateIn;
Expand Down

0 comments on commit 33b2e24

Please sign in to comment.