gaozhangmin commented on code in PR #19204:
URL: https://github.com/apache/pulsar/pull/19204#discussion_r1070836262


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/metrics/ManagedLedgerCacheMetrics.java:
##########
@@ -48,6 +48,7 @@ public synchronized List<Metrics> generate() {
 
         m.put("brk_ml_count", mlCacheStats.getNumberOfManagedLedgers());
         m.put("brk_ml_cache_used_size", mlCacheStats.getCacheUsedSize());
+        m.put("brk_ml_cache_total_size", mlCacheStats.getCacheMaxSize());

Review Comment:
   This configuration is dynamic, we can override it through api. 
   And there so many examples like `jvm_memory_bytes_max` is also a fixed 
value, but exposed as a metrics.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to