kfaraz commented on code in PR #18321:
URL: https://github.com/apache/druid/pull/18321#discussion_r2229005393


##########
server/src/main/java/org/apache/druid/server/metrics/MetricsModule.java:
##########
@@ -218,4 +217,22 @@ public OshiSysMonitor getOshiSysMonitor(
       return new OshiSysMonitor(dimensions, oshiSysConfig);
     }
   }
+
+  /**
+   * Checks if a monitor needs to be loaded on this service based on its node 
role.
+   */
+  private boolean shouldLoadMonitor(Class<?> monitorClass, Set<NodeRole> 
nodeRoles)
+  {
+    final LoadScope loadScope = monitorClass.getAnnotation(LoadScope.class);

Review Comment:
   Sure, that can be done.
   
   I guess we would need to check the superclass recursively if there is no 
annotation defined at the current class level. Would that make sense?



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


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

Reply via email to