wangjialing218 commented on a change in pull request #13184:
URL: https://github.com/apache/pulsar/pull/13184#discussion_r770336320
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java
##########
@@ -1305,6 +1308,41 @@ protected DispatchRate
internalGetSubscriptionDispatchRate() {
return
policies.subscriptionDispatchRate.get(pulsar().getConfiguration().getClusterName());
}
+ public List<BundleStats> internalGetAllBundleStats() {
Review comment:
Yes, we already have API `BrokerStats.getLoadReport()`, you can try with
`bin/pulsar-admin broker-stats load-report`. The result contains all bundles'
stats of this broker, but without topic list for each bundle.
We could move the API of get all bundles' stats for this broker to
`BrokerStats` to avoid misunderstanding. Keep the API of get single bundle
stats in `Namespaces` and add lookup logic to ensure get the result even the
single bundle is not owned by this broker. I will make this change if it's
accecpt.
--
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]