Skip to content

Commit 72b2021

Browse files
committed
KEP-3221: adjust apiserver_authorization_decisions_total metric
1 parent 1590be9 commit 72b2021

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -460,19 +460,20 @@ while the feature is in alpha and beta.
460460

461461
### Monitoring
462462

463-
We will add the following 4 metrics:
463+
We will add the following metrics:
464464

465465
1. `apiserver_authorization_decisions_total`
466466

467-
This will be incremented on round-trip of an authorizer. It will track total
468-
authorization decision invocations across the following labels.
467+
This will be incremented when an authorizer makes a terminal decision (allow or deny).
468+
It will track total authorization decision invocations across the following labels.
469469

470470
Labels {along with possible values}:
471-
- `mode` {<authorizer_name>} # when authorizer is a webhook, prepend `webhook_`
471+
- `type` {<authorizer_type>}
472+
- value matches the configuration `type` field, e.g. `RBAC`, `ABAC`, `Node`, `Webhook`
473+
- `name` {<authorizer_name>}
474+
- value matches the configuration `name` field, e.g. `rbac`, `node`, `abac`, `<webhook name>`
472475
- `decision` {Allow, Deny}
473476

474-
**Note:** Some examples of <authorizer_name>: `RBAC`, `Node`, `ABAC`, `webhook_<name>`.
475-
476477
2. `apiserver_authorization_webhook_evaluations_total`
477478

478479
This will be incremented on round-trip of an authorization webhook. It will track

keps/sig-auth/3221-structured-authorization-configuration/kep.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ feature-gates:
2727
- kube-apiserver
2828
disable-supported: true
2929
metrics:
30+
- apiserver_authorization_decisions_total
3031
- apiserver_authorization_config_controller_automatic_reload_last_timestamp_seconds
3132
- apiserver_authorization_config_controller_automatic_reloads_total{apiserver_id_hash, type}

0 commit comments

Comments
 (0)