asafm commented on code in PR #17531:
URL: https://github.com/apache/pulsar/pull/17531#discussion_r977949136


##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/stats/PrometheusMetricsTest.java:
##########
@@ -1634,6 +1643,29 @@ public static Multimap<String, Metric> 
parseMetrics(String metrics) {
         return parsed;
     }
 
+    @Test
+    public void testRawMetricsProvider() throws IOException {
+        PrometheusMetricsProvider rawMetricsProvider = new 
PrometheusMetricsProvider();
+        rawMetricsProvider.start(new PropertiesConfiguration());
+        
rawMetricsProvider.getStatsLogger("test").getOpStatsLogger("test_metrics")
+            .registerSuccessfulEvent(100, TimeUnit.NANOSECONDS);
+
+        getPulsar().addPrometheusRawMetricsProvider(rawMetricsProvider);

Review Comment:
   Oh, I read your code below. 
   I'm still amazed after spending weeks reading all the metrics code, I'm 
still discovering new bits.
   I was wondering what was that weird `PrometheusRawMetricsProvider` nobody 
was actually using inside Pulsar.
   So you're saying it's in fact a public API for other plugin developers to 
rely on that? Can you please give me a reference for such one?
   



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