Skip to content

Commit

Permalink
add_backlogSize_in_topicStat (apache#5914)
Browse files Browse the repository at this point in the history
  • Loading branch information
k2la authored and tuteng committed Feb 23, 2020
1 parent a3615c2 commit eaa8feb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,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 eaa8feb

Please sign in to comment.