You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/03/05 08:12:54 UTC

[GitHub] [pulsar] linlinnn commented on a change in pull request #9814: [Issue 9804] Allow to enable or disable the cursor metrics

linlinnn commented on a change in pull request #9814:
URL: https://github.com/apache/pulsar/pull/9814#discussion_r588105630



##########
File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/PrometheusMetricsGenerator.java
##########
@@ -130,9 +130,11 @@ private static void generateBrokerBasicMetrics(PulsarService pulsar, SimpleTextO
         parseMetricsToPrometheusMetrics(new ManagedLedgerMetrics(pulsar).generate(),
                 clusterName, Collector.Type.GAUGE, stream);
 
-        // generate managedCursor metrics
-        parseMetricsToPrometheusMetrics(new ManagedCursorMetrics(pulsar).generate(),
-                clusterName, Collector.Type.GAUGE, stream);
+        if(includeManagedCursorMetrics){

Review comment:
       Just for being consistent with `includeConsumerMetrics`, `includeProducerMetrics` etc.




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org