Merge pull request #123342 from logicalhan/storage-metric
bump the stability level of apiserver_storage_size_bytes to STABLE Kubernetes-commit: e613eb33885171a0584aa58cfad9e7c157d23326
This commit is contained in:
commit
d23525a070
8
go.mod
8
go.mod
|
@ -42,8 +42,8 @@ require (
|
|||
google.golang.org/protobuf v1.31.0
|
||||
gopkg.in/natefinch/lumberjack.v2 v2.2.1
|
||||
gopkg.in/square/go-jose.v2 v2.6.0
|
||||
k8s.io/api v0.0.0-20240215162341-48ed98046a81
|
||||
k8s.io/apimachinery v0.0.0-20240216042122-2511177aa20b
|
||||
k8s.io/api v0.0.0-20240221082341-6384da771537
|
||||
k8s.io/apimachinery v0.0.0-20240221002254-afd4b8fa4257
|
||||
k8s.io/client-go v0.0.0-20240215012442-306b201a2d29
|
||||
k8s.io/component-base v0.0.0-20240215013150-2f5bf1a7c2f0
|
||||
k8s.io/klog/v2 v2.120.1
|
||||
|
@ -125,8 +125,8 @@ require (
|
|||
)
|
||||
|
||||
replace (
|
||||
k8s.io/api => k8s.io/api v0.0.0-20240215162341-48ed98046a81
|
||||
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20240216042122-2511177aa20b
|
||||
k8s.io/api => k8s.io/api v0.0.0-20240221082341-6384da771537
|
||||
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20240221002254-afd4b8fa4257
|
||||
k8s.io/client-go => k8s.io/client-go v0.0.0-20240215012442-306b201a2d29
|
||||
k8s.io/component-base => k8s.io/component-base v0.0.0-20240215013150-2f5bf1a7c2f0
|
||||
k8s.io/kms => k8s.io/kms v0.0.0-20231220174908-0e979309a09f
|
||||
|
|
8
go.sum
8
go.sum
|
@ -385,10 +385,10 @@ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
|||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
k8s.io/api v0.0.0-20240215162341-48ed98046a81 h1:PJSX1eWw90K7IiYYEz5IVkBXCvtHe0/ywsDYgU18C0I=
|
||||
k8s.io/api v0.0.0-20240215162341-48ed98046a81/go.mod h1:UGYftZGEVWJmjcFQ0WHZVmn2xla1pekOgF2jxBJGfcA=
|
||||
k8s.io/apimachinery v0.0.0-20240216042122-2511177aa20b h1:IFb50R8bFKU7n1/7GOXyEEeBEC7jHle6jfnCM5DV+Hs=
|
||||
k8s.io/apimachinery v0.0.0-20240216042122-2511177aa20b/go.mod h1:8Kbkl+Wq46koELfFfSvx+qgICYK22zw/3Epu/RdY6yQ=
|
||||
k8s.io/api v0.0.0-20240221082341-6384da771537 h1:y0k+LpiiI7RYSD2bsqyb27CETaeYuitpJsDhnYznCAI=
|
||||
k8s.io/api v0.0.0-20240221082341-6384da771537/go.mod h1:iwR/BjSRFRE7oF6SOr61bmSmux2QOkgThQ5j21QY9Xw=
|
||||
k8s.io/apimachinery v0.0.0-20240221002254-afd4b8fa4257 h1:Z5YxA+t758TWevP0yw/QI4vOOW02b0rEwwSr4/8zxw4=
|
||||
k8s.io/apimachinery v0.0.0-20240221002254-afd4b8fa4257/go.mod h1:8Kbkl+Wq46koELfFfSvx+qgICYK22zw/3Epu/RdY6yQ=
|
||||
k8s.io/client-go v0.0.0-20240215012442-306b201a2d29 h1:wsEWXOxBpOT7X+3NgZx0c/mVOkN7igb/ws/ird9YdxI=
|
||||
k8s.io/client-go v0.0.0-20240215012442-306b201a2d29/go.mod h1:QnFuyQpDrG2gMSOxJFExhLJMAzt0ldtNC7u9/pxxP1I=
|
||||
k8s.io/component-base v0.0.0-20240215013150-2f5bf1a7c2f0 h1:/yXZnWvRsLpsOnABWHA1+be9QFRbgbwy2EJ57qxZTy4=
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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
|
||||
`,
|
||||
|
|
Loading…
Reference in New Issue