@@ -116,7 +116,7 @@ spec:
116
116
Produces the metric :
117
117
118
118
` ` ` prometheus
119
- uptime {group="myteam.io", kind="Foo", version="v1"} 43.21
119
+ kube_uptime {group="myteam.io", kind="Foo", version="v1"} 43.21
120
120
` ` `
121
121
122
122
# ### Multiple Metrics/Kitchen Sink
@@ -167,8 +167,8 @@ spec:
167
167
Produces the following metrics :
168
168
169
169
` ` ` prometheus
170
- 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
171
- 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
170
+ kube_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
171
+ kube_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
172
172
` ` `
173
173
174
174
# ## Metric types
@@ -203,7 +203,7 @@ spec:
203
203
Produces the metric :
204
204
205
205
` ` ` prometheus
206
- uptime {group="myteam.io", kind="Foo", version="v1"} 43.21
206
+ kube_uptime {group="myteam.io", kind="Foo", version="v1"} 43.21
207
207
` ` `
208
208
209
209
# ### StateSet
@@ -235,9 +235,9 @@ The value will be 1, if the value matches the one in list.
235
235
Produces the metric :
236
236
237
237
` ` ` prometheus
238
- status_phase {group="myteam.io", kind="Foo", version="v1", phase="Pending"} 1
239
- status_phase {group="myteam.io", kind="Foo", version="v1", phase="Bar"} 0
240
- status_phase {group="myteam.io", kind="Foo", version="v1", phase="Baz"} 0
238
+ kube_status_phase {group="myteam.io", kind="Foo", version="v1", phase="Pending"} 1
239
+ kube_status_phase {group="myteam.io", kind="Foo", version="v1", phase="Bar"} 0
240
+ kube_status_phase {group="myteam.io", kind="Foo", version="v1", phase="Baz"} 0
241
241
` ` `
242
242
243
243
# ### Info
@@ -267,7 +267,7 @@ spec:
267
267
Produces the metric :
268
268
269
269
` ` ` prometheus
270
- version {group="myteam.io", kind="Foo", version="v1", version="v1.2.3"} 1
270
+ kube_version {group="myteam.io", kind="Foo", version="v1", version="v1.2.3"} 1
271
271
` ` `
272
272
273
273
# ## Naming
0 commit comments