michaeljmarshall commented on code in PR #18116:
URL: https://github.com/apache/pulsar/pull/18116#discussion_r1008162144


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/NamespaceStatsAggregator.java:
##########
@@ -302,22 +315,22 @@ private static void getTopicStats(Topic topic, TopicStats 
stats, boolean include
                 });
     }
 
-    private static void printDefaultBrokerStats(PrometheusMetricStreams 
stream, String cluster) {
-        // Print metrics with 0 values. This is necessary to have the 
available brokers being
+    private static void printBrokerStats(PrometheusMetricStreams stream, 
String cluster, AggregatedBrokerStats brokerStats) {

Review Comment:
   I think I misunderstood the original motivation for this PR. Is the issue 
that you're unable to sum `pulsar_topics_count` while ignoring the `namespace` 
label?



##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/NamespaceStatsAggregator.java:
##########
@@ -70,7 +71,19 @@ public static void generate(PulsarService pulsar, boolean 
includeTopicMetrics, b
         LongAdder topicsCount = new LongAdder();

Review Comment:
   I meant that we should rename this variable. With the most recent commit, 
it's less ambiguous, so you can ignore this comment.



-- 
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