Skip to content

Commit 084deb7

Browse files
committed
clarify the description of the metric apiserver_storage_objects
1 parent 35199e4 commit 084deb7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

staging/src/k8s.io/apiserver/pkg/storage/etcd3/metrics/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ var (
6969
objectCounts = compbasemetrics.NewGaugeVec(
7070
&compbasemetrics.GaugeOpts{
7171
Name: "apiserver_storage_objects",
72-
Help: "Number of stored objects at the time of last check split by kind.",
72+
Help: "Number of stored objects at the time of last check split by kind. In case of a fetching error, the value will be -1.",
7373
StabilityLevel: compbasemetrics.STABLE,
7474
},
7575
[]string{"resource"},

test/instrumentation/testdata/stable-metrics-list.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@
320320
- 1e+08
321321
- 1e+09
322322
- name: apiserver_storage_objects
323-
help: Number of stored objects at the time of last check split by kind.
323+
help: Number of stored objects at the time of last check split by kind. In case
324+
of a fetching error, the value will be -1.
324325
type: Gauge
325326
stabilityLevel: STABLE
326327
labels:

0 commit comments

Comments
 (0)