bump the stability level of apiserver_storage_size_bytes to STABLE
This commit is contained in:
@@ -84,7 +84,7 @@ var (
|
|||||||
},
|
},
|
||||||
[]string{"endpoint"},
|
[]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 }}
|
storageMonitor = &monitorCollector{monitorGetter: func() ([]Monitor, error) { return nil, nil }}
|
||||||
etcdEventsReceivedCounts = compbasemetrics.NewCounterVec(
|
etcdEventsReceivedCounts = compbasemetrics.NewCounterVec(
|
||||||
&compbasemetrics.CounterOpts{
|
&compbasemetrics.CounterOpts{
|
||||||
|
@@ -197,7 +197,7 @@ func TestStorageSizeCollector(t *testing.T) {
|
|||||||
return []Monitor{fakeEtcdMonitor{storageSize: 1e9}}, nil
|
return []Monitor{fakeEtcdMonitor{storageSize: 1e9}}, nil
|
||||||
},
|
},
|
||||||
err: 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
|
# TYPE apiserver_storage_size_bytes gauge
|
||||||
apiserver_storage_size_bytes{cluster="etcd-0"} 1e+09
|
apiserver_storage_size_bytes{cluster="etcd-0"} 1e+09
|
||||||
`,
|
`,
|
||||||
|
@@ -309,6 +309,12 @@
|
|||||||
stabilityLevel: STABLE
|
stabilityLevel: STABLE
|
||||||
labels:
|
labels:
|
||||||
- resource
|
- 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
|
- name: container_cpu_usage_seconds_total
|
||||||
help: Cumulative cpu time consumed by the container in core-seconds
|
help: Cumulative cpu time consumed by the container in core-seconds
|
||||||
type: Custom
|
type: Custom
|
||||||
|
Reference in New Issue
Block a user