bump the stability level of apiserver_storage_size_bytes to STABLE

This commit is contained in:
Han Kang
2024-02-16 09:13:46 -08:00
parent 0e8ef9c353
commit f38852768e
3 changed files with 8 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ var (
},
[]string{"endpoint"},
)
storageSizeDescription = compbasemetrics.NewDesc("apiserver_storage_size_bytes", "Size of the storage database file physically allocated in bytes.", []string{"cluster"}, nil, compbasemetrics.ALPHA, "")
storageSizeDescription = compbasemetrics.NewDesc("apiserver_storage_size_bytes", "Size of the storage database file physically allocated in bytes.", []string{"cluster"}, nil, compbasemetrics.STABLE, "")
storageMonitor = &monitorCollector{monitorGetter: func() ([]Monitor, error) { return nil, nil }}
etcdEventsReceivedCounts = compbasemetrics.NewCounterVec(
&compbasemetrics.CounterOpts{

View File

@@ -197,7 +197,7 @@ func TestStorageSizeCollector(t *testing.T) {
return []Monitor{fakeEtcdMonitor{storageSize: 1e9}}, nil
},
err: nil,
want: `# HELP apiserver_storage_size_bytes [ALPHA] Size of the storage database file physically allocated in bytes.
want: `# HELP apiserver_storage_size_bytes [STABLE] Size of the storage database file physically allocated in bytes.
# TYPE apiserver_storage_size_bytes gauge
apiserver_storage_size_bytes{cluster="etcd-0"} 1e+09
`,

View File

@@ -309,6 +309,12 @@
stabilityLevel: STABLE
labels:
- resource
- name: apiserver_storage_size_bytes
help: Size of the storage database file physically allocated in bytes.
type: Custom
stabilityLevel: STABLE
labels:
- cluster
- name: container_cpu_usage_seconds_total
help: Cumulative cpu time consumed by the container in core-seconds
type: Custom