mcvsubbu commented on a change in pull request #4392: Allow customized metrics 
prefix in pinot controller/broker/server
URL: https://github.com/apache/incubator-pinot/pull/4392#discussion_r303182846
 
 

 ##########
 File path: 
pinot-common/src/main/java/org/apache/pinot/common/metrics/ControllerMetrics.java
 ##########
 @@ -25,8 +25,18 @@
  * Metrics for the controller.
  */
 public class ControllerMetrics extends 
AbstractMetrics<AbstractMetrics.QueryPhase, ControllerMeter, ControllerGauge, 
ControllerTimer> {
+
+  // FYI this is incorrect as it generate metrics named without a dot after 
pinot.controller part,
+  // but we keep this default for backward compatibility in case someone 
relies on this format
+  // see Servermetrics or BrokerMetrics class for correct prefix should be use
+  public static final String METRICS_PREFIX_DEFAULT = "pinot.controller";
 
 Review comment:
   thanks

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to