-
Notifications
You must be signed in to change notification settings - Fork 25.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose realms authentication metrics #104200
Expose realms authentication metrics #104200
Conversation
authentications for individual realms. Exposed metrics are: - `es.security.authc.realms.success.total` - `es.security.authc.realms.failures.total` - `es.security.authc.realms.time` Each of the metric is exposed at node level and includes additional information with these attributes: - `es.security.realm_type` - `es.security.realm_name` - `es.security.realm_authc_failure_reason`
Hi @slobodanadamovic, I've created a changelog YAML for you. |
"Authentication of [%s] was terminated by realm [%s] - %s", | ||
realm.authenticate( | ||
authenticationToken, | ||
InstrumentedSecurityActionListener.wrapForAuthc(authenticationMetrics, realm, ActionListener.wrap(result -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrapping a listener with InstrumentedSecurityActionListener.wrapForAuthc
caused the formatting change which makes it hard to determine the actual diff, but this line is the only change.
…bodanadamovic/elasticsearch into sa-add-realms-authentication-metrics
…ealms-authentication-metrics
…ealms-authentication-metrics
…ealms-authentication-metrics # Conflicts: # x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/metric/SecurityMetricType.java
…ealms-authentication-metrics
Pinging @elastic/es-security (Team:Security) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! LGTM! 👍
This PR adds metrics for recording successful and failed
authentications for individual realms. Exposed metrics are:
es.security.authc.realms.success.total
es.security.authc.realms.failures.total
es.security.authc.realms.time
Each of the metric is exposed at node level and includes additional information with these attributes:
es.security.realm_type
- can be one of:jwt
,saml
,oidc
,active_directory
,ldap
,pki
,kerberos
...es.security.realm_name
es.security.realm_authc_failure_reason