gianm commented on code in PR #18321:
URL: https://github.com/apache/druid/pull/18321#discussion_r2228961925
##########
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:
Any desire to get fancy here and check superclass annotations too? Probably
not necessary but just something that came to mind.
--
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]