From 4c6fff147875b033bb0c32e5724ffddbdc1c751e Mon Sep 17 00:00:00 2001 From: Pavel Timofeev Date: Tue, 25 Oct 2022 22:48:27 -0600 Subject: [PATCH] Fix typos --- docs/customresourcestate-metrics.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/customresourcestate-metrics.md b/docs/customresourcestate-metrics.md index 394c6dbc00..b733509ccd 100644 --- a/docs/customresourcestate-metrics.md +++ b/docs/customresourcestate-metrics.md @@ -151,7 +151,7 @@ spec: labelsFromPath: active: [active] # The actual field to use as metric value. Should be a number. - value: [ready] + valueFrom: [ready] commonLabels: custom_metric: "yes" labelsFromPath: @@ -168,8 +168,8 @@ spec: Produces the following metrics: ```prometheus -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 -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 +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"} 2 +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"} 4 ``` ### Metric types