Skip to content

Commit e467d1e

Browse files
authored
initial kube-state-metrics configuration file (#250)
1 parent 566a2e7 commit e467d1e

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

kube-state-metrics/metrics-cm.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: appwrapper-ksm
5+
namespace: kube-system
6+
data:
7+
appwrapper_ksm.yaml: |
8+
kind: CustomResourceStateMetrics
9+
spec:
10+
resources:
11+
- groupVersionKind:
12+
group: workload.codeflare.dev
13+
kind: "AppWrapper"
14+
version: "v1beta2"
15+
commonLabels:
16+
crd_type: appwrapper
17+
labelsFromPath:
18+
namespace: [metadata, namespace]
19+
metrics:
20+
- name: "status_phase"
21+
help: "AppWrapper status_phase"
22+
each:
23+
type: StateSet
24+
stateSet:
25+
labelName: phase
26+
path: [status, phase]
27+
list: [Suspended, Resuming, Running, Resetting, Suspending, Succeeded, Failed, Terminating]
28+
- name: "retry_count"
29+
help: "AppWrapper status_retries"
30+
each:
31+
type: Gauge
32+
gauge:
33+
path: [status, retries]
34+
- name: "status_conditions"
35+
help: "AppWrapper status_conditions"
36+
each:
37+
type: Gauge
38+
gauge:
39+
path: [status, conditions]
40+
labelsFromPath:
41+
type: ["type"]
42+
valueFrom: ["status"]

0 commit comments

Comments
 (0)