@@ -117,7 +117,7 @@ spec:
117
117
Produces the metric :
118
118
119
119
` ` ` prometheus
120
- kube_crd_uptime{group ="myteam.io", kind="Foo", version="v1"} 43.21
120
+ kube_customresource_uptime{customresource_group ="myteam.io", kind="Foo", version="v1"} 43.21
121
121
` ` `
122
122
123
123
# ### Multiple Metrics/Kitchen Sink
@@ -169,8 +169,8 @@ spec:
169
169
Produces the following metrics :
170
170
171
171
` ` ` prometheus
172
- 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
173
- 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
172
+ kube_customresource_ready_count{customresource_group ="myteam.io", kind="Foo", version="v1", active="1",custom_metric="yes",foo="bar",name="foo",bar="baz",qux="quxx",type="type-a"} 2
173
+ kube_customresource_ready_count{customresource_group ="myteam.io", kind="Foo", version="v1", active="3",custom_metric="yes",foo="bar",name="foo",bar="baz",qux="quxx",type="type-b"} 4
174
174
` ` `
175
175
176
176
# ## Metric types
@@ -205,7 +205,7 @@ spec:
205
205
Produces the metric :
206
206
207
207
` ` ` prometheus
208
- kube_crd_uptime{group ="myteam.io", kind="Foo", version="v1"} 43.21
208
+ kube_customresource_uptime{customresource_group ="myteam.io", kind="Foo", version="v1"} 43.21
209
209
` ` `
210
210
211
211
# ### StateSet
@@ -237,9 +237,9 @@ The value will be 1, if the value matches the one in list.
237
237
Produces the metric :
238
238
239
239
` ` ` prometheus
240
- kube_crd_status_phase{group ="myteam.io", kind="Foo", version="v1", phase="Pending"} 1
241
- kube_crd_status_phase{group ="myteam.io", kind="Foo", version="v1", phase="Bar"} 0
242
- kube_crd_status_phase{group ="myteam.io", kind="Foo", version="v1", phase="Baz"} 0
240
+ kube_customresource_status_phase{customresource_group ="myteam.io", kind="Foo", version="v1", phase="Pending"} 1
241
+ kube_customresource_status_phase{customresource_group ="myteam.io", kind="Foo", version="v1", phase="Bar"} 0
242
+ kube_customresource_status_phase{customresource_group ="myteam.io", kind="Foo", version="v1", phase="Baz"} 0
243
243
` ` `
244
244
245
245
# ### Info
@@ -269,7 +269,7 @@ spec:
269
269
Produces the metric :
270
270
271
271
` ` ` prometheus
272
- kube_crd_version{group ="myteam.io", kind="Foo", version="v1", version="v1.2.3"} 1
272
+ kube_customresource_version{customresource_group ="myteam.io", kind="Foo", version="v1", version="v1.2.3"} 1
273
273
` ` `
274
274
275
275
# ## Naming
@@ -291,7 +291,7 @@ spec:
291
291
292
292
Produces :
293
293
` ` ` prometheus
294
- myteam_foos_uptime{group ="myteam.io", kind="Foo", version="v1"} 43.21
294
+ myteam_foos_uptime{customresource_group ="myteam.io", kind="Foo", version="v1"} 43.21
295
295
` ` `
296
296
297
297
To omit namespace and/or subsystem altogether, set them to the empty string :
0 commit comments