Skip to content

Commit e5e0e4a

Browse files
authored
Merge pull request #210 from datum-cloud/chore/rm-metrics-last-transition-time
chore: add last transition resource metrics
2 parents 5013a86 + 54a912e commit e5e0e4a

4 files changed

Lines changed: 44 additions & 0 deletions

File tree

config/resource-metrics/httpproxies.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,17 @@ spec:
5252
reason: [reason]
5353
status: [status]
5454
valueFrom: [status]
55+
- name: "status_condition_last_transition_time"
56+
help: "last transition time for status conditions"
57+
each:
58+
type: Gauge
59+
gauge:
60+
path: [status, conditions]
61+
labelsFromPath:
62+
type: [type]
63+
reason: [reason]
64+
status: [status]
65+
valueFrom: [lastTransitionTime]
5566
- name: "custom_hostname"
5667
help: "Custom hostname defined on the proxy"
5768
errorLogV: 10

config/resource-metrics/networks.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,14 @@ spec:
4040
reason: [reason]
4141
status: [status]
4242
valueFrom: [status]
43+
- name: "status_condition_last_transition_time"
44+
help: "last transition time for status conditions"
45+
each:
46+
type: Gauge
47+
gauge:
48+
path: [status, conditions]
49+
labelsFromPath:
50+
type: [type]
51+
reason: [reason]
52+
status: [status]
53+
valueFrom: [lastTransitionTime]

config/resource-metrics/subnet-claims.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,14 @@ spec:
4545
reason: [reason]
4646
status: [status]
4747
valueFrom: [status]
48+
- name: "status_condition_last_transition_time"
49+
help: "last transition time for status conditions"
50+
each:
51+
type: Gauge
52+
gauge:
53+
path: [status, conditions]
54+
labelsFromPath:
55+
type: [type]
56+
reason: [reason]
57+
status: [status]
58+
valueFrom: [lastTransitionTime]

config/resource-metrics/subnets.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,14 @@ spec:
4242
reason: [reason]
4343
status: [status]
4444
valueFrom: [status]
45+
- name: "status_condition_last_transition_time"
46+
help: "last transition time for status conditions"
47+
each:
48+
type: Gauge
49+
gauge:
50+
path: [status, conditions]
51+
labelsFromPath:
52+
type: [type]
53+
reason: [reason]
54+
status: [status]
55+
valueFrom: [lastTransitionTime]

0 commit comments

Comments
 (0)