diff --git a/pkg/server/options/authorizationconfig/metrics/metrics.go b/pkg/server/options/authorizationconfig/metrics/metrics.go index 2e739b15c..e03894cce 100644 --- a/pkg/server/options/authorizationconfig/metrics/metrics.go +++ b/pkg/server/options/authorizationconfig/metrics/metrics.go @@ -38,7 +38,7 @@ var ( Subsystem: subsystem, Name: "automatic_reloads_total", Help: "Total number of automatic reloads of authorization configuration split by status and apiserver identity.", - StabilityLevel: metrics.ALPHA, + StabilityLevel: metrics.BETA, }, []string{"status", "apiserver_id_hash"}, ) @@ -49,7 +49,7 @@ var ( Subsystem: subsystem, Name: "automatic_reload_last_timestamp_seconds", Help: "Timestamp of the last automatic reload of authorization configuration split by status and apiserver identity.", - StabilityLevel: metrics.ALPHA, + StabilityLevel: metrics.BETA, }, []string{"status", "apiserver_id_hash"}, ) diff --git a/pkg/server/options/authorizationconfig/metrics/metrics_test.go b/pkg/server/options/authorizationconfig/metrics/metrics_test.go index 1b7c7e0a6..546561b28 100644 --- a/pkg/server/options/authorizationconfig/metrics/metrics_test.go +++ b/pkg/server/options/authorizationconfig/metrics/metrics_test.go @@ -31,7 +31,7 @@ const ( func TestRecordAuthorizationConfigAutomaticReloadFailure(t *testing.T) { expectedValue := ` - # HELP apiserver_authorization_config_controller_automatic_reloads_total [ALPHA] Total number of automatic reloads of authorization configuration split by status and apiserver identity. + # HELP apiserver_authorization_config_controller_automatic_reloads_total [BETA] Total number of automatic reloads of authorization configuration split by status and apiserver identity. # TYPE apiserver_authorization_config_controller_automatic_reloads_total counter apiserver_authorization_config_controller_automatic_reloads_total {apiserver_id_hash="sha256:14f9d63e669337ac6bfda2e2162915ee6a6067743eddd4e5c374b572f951ff37",status="failure"} 1 ` @@ -50,7 +50,7 @@ func TestRecordAuthorizationConfigAutomaticReloadFailure(t *testing.T) { func TestRecordAuthorizationConfigAutomaticReloadSuccess(t *testing.T) { expectedValue := ` - # HELP apiserver_authorization_config_controller_automatic_reloads_total [ALPHA] Total number of automatic reloads of authorization configuration split by status and apiserver identity. + # HELP apiserver_authorization_config_controller_automatic_reloads_total [BETA] Total number of automatic reloads of authorization configuration split by status and apiserver identity. # TYPE apiserver_authorization_config_controller_automatic_reloads_total counter apiserver_authorization_config_controller_automatic_reloads_total {apiserver_id_hash="sha256:14f9d63e669337ac6bfda2e2162915ee6a6067743eddd4e5c374b572f951ff37",status="success"} 1 ` @@ -75,7 +75,7 @@ func TestAuthorizationConfigAutomaticReloadLastTimestampSeconds(t *testing.T) { }{ { expectedValue: ` - # HELP apiserver_authorization_config_controller_automatic_reload_last_timestamp_seconds [ALPHA] Timestamp of the last automatic reload of authorization configuration split by status and apiserver identity. + # HELP apiserver_authorization_config_controller_automatic_reload_last_timestamp_seconds [BETA] Timestamp of the last automatic reload of authorization configuration split by status and apiserver identity. # TYPE apiserver_authorization_config_controller_automatic_reload_last_timestamp_seconds gauge apiserver_authorization_config_controller_automatic_reload_last_timestamp_seconds{apiserver_id_hash="sha256:14f9d63e669337ac6bfda2e2162915ee6a6067743eddd4e5c374b572f951ff37",status="failure"} 1.689101941e+09 `, @@ -84,7 +84,7 @@ func TestAuthorizationConfigAutomaticReloadLastTimestampSeconds(t *testing.T) { }, { expectedValue: ` - # HELP apiserver_authorization_config_controller_automatic_reload_last_timestamp_seconds [ALPHA] Timestamp of the last automatic reload of authorization configuration split by status and apiserver identity. + # HELP apiserver_authorization_config_controller_automatic_reload_last_timestamp_seconds [BETA] Timestamp of the last automatic reload of authorization configuration split by status and apiserver identity. # TYPE apiserver_authorization_config_controller_automatic_reload_last_timestamp_seconds gauge apiserver_authorization_config_controller_automatic_reload_last_timestamp_seconds{apiserver_id_hash="sha256:14f9d63e669337ac6bfda2e2162915ee6a6067743eddd4e5c374b572f951ff37",status="success"} 1.689101941e+09 `,