[
https://issues.apache.org/jira/browse/ARTEMIS-4306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17750038#comment-17750038
]
Justin Bertram edited comment on ARTEMIS-4306 at 8/1/23 11:39 PM:
------------------------------------------------------------------
[~mike.artz], off the cuff I wouldn't expect this to be possible. In order to
register a metric you need to use
{{org.apache.activemq.artemis.core.server.metrics.MetricsManager}} which is not
passed to security manager implementation. In any case, you'd want to implement
this in {{org.apache.activemq.artemis.core.security.impl.SecurityStoreImpl}}
next to the authn/z caches so that the metrics would work regardless of the
security manager implementation.
was (Author: jbertram):
[~mike.artz], off the cuff I wouldn't expect this to be possible. In order to
register a metric you need to use
{{org.apache.activemq.artemis.core.server.metrics.MetricsManager}} which is not
passed to security manager implementations. In any case, you'd want to
implement this in
`org.apache.activemq.artemis.core.security.impl.SecurityStoreImpl` next to the
authn/z caches so that the metrics would work regardless of the security
manager implementation.
> Add authn/z metrics
> -------------------
>
> Key: ARTEMIS-4306
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4306
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Reporter: Justin Bertram
> Priority: Major
>
> It would be useful to have metrics for authn/z successes and failures as well
> as for metrics related to the corresponding caches.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)