diff --git a/docs/metrics/workload/statefulset-metrics.md b/docs/metrics/workload/statefulset-metrics.md index b3a47fd12..08fd7c75c 100644 --- a/docs/metrics/workload/statefulset-metrics.md +++ b/docs/metrics/workload/statefulset-metrics.md @@ -10,7 +10,7 @@ | kube_statefulset_status_replicas_updated | Gauge | | `statefulset`=<statefulset-name>
`namespace`=<statefulset-namespace> | STABLE | | kube_statefulset_status_observed_generation | Gauge | | `statefulset`=<statefulset-name>
`namespace`=<statefulset-namespace> | STABLE | | kube_statefulset_replicas | Gauge | | `statefulset`=<statefulset-name>
`namespace`=<statefulset-namespace> | STABLE | -| kube_statefulset_ordinals_start | Gauge | | `statefulset`=<statefulset-name>
`namespace`=<statefulset-namespace> | ALPHA | +| kube_statefulset_ordinals_start | Gauge | | `statefulset`=<statefulset-name>
`namespace`=<statefulset-namespace> | STABLE | | kube_statefulset_metadata_generation | Gauge | | `statefulset`=<statefulset-name>
`namespace`=<statefulset-namespace> | STABLE | | kube_statefulset_persistentvolumeclaim_retention_policy | Gauge | | `statefulset`=<statefulset-name>
`namespace`=<statefulset-namespace>
`when_deleted`=<statefulset-when-deleted-pvc-policy>
`when_scaled`=<statefulset-when-scaled-pvc-policy> | EXPERIMENTAL | | kube_statefulset_created | Gauge | | `statefulset`=<statefulset-name>
`namespace`=<statefulset-namespace> | STABLE | diff --git a/internal/store/statefulset.go b/internal/store/statefulset.go index 332b7bfe1..87f7e36ec 100644 --- a/internal/store/statefulset.go +++ b/internal/store/statefulset.go @@ -182,7 +182,7 @@ func statefulSetMetricFamilies(allowAnnotationsList, allowLabelsList []string) [ "kube_statefulset_ordinals_start", "Start ordinal of the StatefulSet.", metric.Gauge, - basemetrics.ALPHA, + basemetrics.STABLE, "", wrapStatefulSetFunc(func(s *v1.StatefulSet) *metric.Family { ms := []*metric.Metric{} diff --git a/internal/store/statefulset_test.go b/internal/store/statefulset_test.go index 34f3302d8..7b57e8e93 100644 --- a/internal/store/statefulset_test.go +++ b/internal/store/statefulset_test.go @@ -65,7 +65,7 @@ func TestStatefulSetStore(t *testing.T) { # HELP kube_statefulset_metadata_generation [STABLE] Sequence number representing a specific generation of the desired state for the StatefulSet. # HELP kube_statefulset_persistentvolumeclaim_retention_policy Count of retention policy for StatefulSet template PVCs # HELP kube_statefulset_replicas [STABLE] Number of desired pods for a StatefulSet. - # HELP kube_statefulset_ordinals_start Start ordinal of the StatefulSet. + # HELP kube_statefulset_ordinals_start [STABLE] Start ordinal of the StatefulSet. # HELP kube_statefulset_status_current_revision [STABLE] Indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). # HELP kube_statefulset_status_observed_generation [STABLE] The generation observed by the StatefulSet controller. # HELP kube_statefulset_status_replicas [STABLE] The number of replicas per StatefulSet. @@ -364,7 +364,7 @@ func TestStatefulSetStore(t *testing.T) { # HELP kube_statefulset_metadata_generation [STABLE] Sequence number representing a specific generation of the desired state for the StatefulSet. # HELP kube_statefulset_persistentvolumeclaim_retention_policy Count of retention policy for StatefulSet template PVCs # HELP kube_statefulset_replicas [STABLE] Number of desired pods for a StatefulSet. - # HELP kube_statefulset_ordinals_start Start ordinal of the StatefulSet. + # HELP kube_statefulset_ordinals_start [STABLE] Start ordinal of the StatefulSet. # HELP kube_statefulset_status_current_revision [STABLE] Indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). # HELP kube_statefulset_status_replicas [STABLE] The number of replicas per StatefulSet. # HELP kube_statefulset_status_replicas_available The number of available replicas per StatefulSet.