Skip to content

Commit 846222b

Browse files
authored
Merge pull request #1870 from timp87/fix-customresourcestate-metrics-doc
Fix typos in customresourcestate-metrics doc
2 parents 0d55500 + aba1302 commit 846222b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/customresourcestate-metrics.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ spec:
150150
# label values can be resolved specific to this path
151151
labelsFromPath:
152152
active: [active]
153-
# The actual field to use as metric value. Should be a number.
154-
value: [ready]
153+
# The actual field to use as metric value. Should be a number, boolean or RFC3339 timestamp string.
154+
valueFrom: [ready]
155155
commonLabels:
156156
custom_metric: "yes"
157157
labelsFromPath:
@@ -168,8 +168,8 @@ spec:
168168
Produces the following metrics:
169169

170170
```prometheus
171-
kube_crd_active_count{group="myteam.io", kind="Foo", version="v1", active="1",custom_metric="yes",foo="bar",name="foo",bar="baz",qux="quxx",type="type-a"} 1
172-
kube_crd_active_count{group="myteam.io", kind="Foo", version="v1", active="3",custom_metric="yes",foo="bar",name="foo",bar="baz",qux="quxx",type="type-b"} 3
171+
kube_crd_ready_count{group="myteam.io", kind="Foo", version="v1", active="1",custom_metric="yes",foo="bar",name="foo",bar="baz",qux="quxx",type="type-a"} 2
172+
kube_crd_ready_count{group="myteam.io", kind="Foo", version="v1", active="3",custom_metric="yes",foo="bar",name="foo",bar="baz",qux="quxx",type="type-b"} 4
173173
```
174174

175175
### Metric types

0 commit comments

Comments
 (0)