Promote automatic_reloads of authz config metrics to BETA
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com> Kubernetes-commit: 5314fcece315c6bab115de4ac723baa43f8d6ec0
This commit is contained in:
parent
7937de32ff
commit
12fab5de10
|
@ -38,7 +38,7 @@ var (
|
||||||
Subsystem: subsystem,
|
Subsystem: subsystem,
|
||||||
Name: "automatic_reloads_total",
|
Name: "automatic_reloads_total",
|
||||||
Help: "Total number of automatic reloads of authorization configuration split by status and apiserver identity.",
|
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"},
|
[]string{"status", "apiserver_id_hash"},
|
||||||
)
|
)
|
||||||
|
@ -49,7 +49,7 @@ var (
|
||||||
Subsystem: subsystem,
|
Subsystem: subsystem,
|
||||||
Name: "automatic_reload_last_timestamp_seconds",
|
Name: "automatic_reload_last_timestamp_seconds",
|
||||||
Help: "Timestamp of the last automatic reload of authorization configuration split by status and apiserver identity.",
|
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"},
|
[]string{"status", "apiserver_id_hash"},
|
||||||
)
|
)
|
||||||
|
|
|
@ -31,7 +31,7 @@ const (
|
||||||
|
|
||||||
func TestRecordAuthorizationConfigAutomaticReloadFailure(t *testing.T) {
|
func TestRecordAuthorizationConfigAutomaticReloadFailure(t *testing.T) {
|
||||||
expectedValue := `
|
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
|
# TYPE apiserver_authorization_config_controller_automatic_reloads_total counter
|
||||||
apiserver_authorization_config_controller_automatic_reloads_total {apiserver_id_hash="sha256:14f9d63e669337ac6bfda2e2162915ee6a6067743eddd4e5c374b572f951ff37",status="failure"} 1
|
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) {
|
func TestRecordAuthorizationConfigAutomaticReloadSuccess(t *testing.T) {
|
||||||
expectedValue := `
|
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
|
# TYPE apiserver_authorization_config_controller_automatic_reloads_total counter
|
||||||
apiserver_authorization_config_controller_automatic_reloads_total {apiserver_id_hash="sha256:14f9d63e669337ac6bfda2e2162915ee6a6067743eddd4e5c374b572f951ff37",status="success"} 1
|
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: `
|
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
|
# 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
|
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: `
|
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
|
# 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
|
apiserver_authorization_config_controller_automatic_reload_last_timestamp_seconds{apiserver_id_hash="sha256:14f9d63e669337ac6bfda2e2162915ee6a6067743eddd4e5c374b572f951ff37",status="success"} 1.689101941e+09
|
||||||
`,
|
`,
|
||||||
|
|
Loading…
Reference in New Issue