mimaison commented on code in PR #19050: URL: https://github.com/apache/kafka/pull/19050#discussion_r2044525835
########## metadata/src/main/java/org/apache/kafka/metadata/authorizer/StandardAuthorizer.java: ########## @@ -207,4 +216,45 @@ static AuthorizationResult getDefaultResult(Map<String, ?> configs) { if (configValue == null) return DENIED; return Boolean.parseBoolean(configValue.toString().trim()) ? ALLOWED : DENIED; } + + @Override + public void withPluginMetrics(PluginMetrics metrics) { + this.authorizerMetrics = new AuthorizerMetrics(metrics); + } + + private class AuthorizerMetrics { + private final Sensor authorizationAllowedSensor; + private final Sensor authorizationDeniedSensor; + private final Sensor authorizationRequestSensor; + + private AuthorizerMetrics(PluginMetrics metrics) { + authorizationAllowedSensor = metrics.addSensor("authorizer-authorization-allowed"); Review Comment: That was a typo in the KIP, updated. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org