Skip to content

Commit 9945d2e

Browse files
committed
KEP-3221: Add authorization match condition metrics
1 parent 72b2021 commit 9945d2e

File tree

1 file changed

+30
-0
lines changed
  • keps/sig-auth/3221-structured-authorization-configuration

1 file changed

+30
-0
lines changed

keps/sig-auth/3221-structured-authorization-configuration/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,36 @@ This Counter metric records the total number of reload successes and failures, p
512512
- `apiserver_id_hash`
513513
- `status` (`success` or `failure`)
514514

515+
7. `apiserver_authorization_match_condition_evaluation_errors_total`
516+
517+
This will be incremented when an authorization webhook encounters a match condition error.
518+
519+
Labels {along with possible values}:
520+
- `type` {<authorizer_type>}
521+
- Currently only `Webhook` authorizers support match conditions
522+
- `name` {<authorizer_name>}
523+
- value matches the configuration `name` field
524+
525+
8. `apiserver_authorization_match_condition_exclusions_total`
526+
527+
This will be incremented when an authorization webhook is skipped because match conditions exclude it.
528+
529+
Labels {along with possible values}:
530+
- `type` {<authorizer_type>}
531+
- Currently only `Webhook` authorizers support match conditions
532+
- `name` {<authorizer_name>}
533+
- value matches the configuration `name` field
534+
535+
9. `apiserver_authorization_match_condition_evaluation_seconds`
536+
537+
Authorization match condition evaluation time in seconds.
538+
539+
Labels {along with possible values}:
540+
- `type` {<authorizer_type>}
541+
- Currently only `Webhook` authorizers support match conditions
542+
- `name` {<authorizer_name>}
543+
- value matches the configuration `name` field
544+
515545
### Test Plan
516546

517547
[x] I/we understand the owners of the involved components may require updates to

0 commit comments

Comments
 (0)