wirybeaver commented on code in PR #10815:
URL: https://github.com/apache/pinot/pull/10815#discussion_r1323877297


##########
pinot-common/src/main/java/org/apache/pinot/common/metrics/ValidationMetrics.java:
##########
@@ -239,6 +239,14 @@ public void cleanupSegmentCountGauge(final String 
resource) {
     removeGauge(resource, ValidationMetricName.SEGMENT_COUNT);
   }
 
+  public void updateTmpSegmentCountGauge(final String resource, final long 
tmpSegmentCount) {

Review Comment:
   ```  
   public static <T> PinotGauge<T> makeGauge(PinotMetricsRegistry registry, 
PinotMetricName name, PinotGauge<T> gauge) {
       return registry.newGauge(name, gauge);
     }
   
     public static PinotMeter makePinotMeter(PinotMetricsRegistry registry, 
PinotMetricName name, String eventType,
         TimeUnit unit) {
       return registry.newMeter(name, eventType, unit);
     }
   ```
   Meter metrics would output .m1, .m5, .m15 I am not whether we need those 
statics. Existing count related metrics of ValidationMetrics also use gauge



-- 
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: commits-unsubscr...@pinot.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to