Skip to content

Commit 50ecbae

Browse files
authored
Merge pull request #9084 from chrischdi/pr-ksm-machine-cert-expiry
🌱 hack/observability: add capi_machine_status_certificatesexpirydate metric
2 parents 77935f6 + f585a8c commit 50ecbae

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

hack/observability/kube-state-metrics/crd-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,15 @@ spec:
569569
address:
570570
- address
571571
type: Info
572+
- name: status_certificatesexpirydate
573+
help: Information about certificate expiration date of a control plane node.
574+
each:
575+
gauge:
576+
nilIsZero: true
577+
path:
578+
- status
579+
- certificatesExpiryDate
580+
type: Gauge
572581
- name: status_noderef
573582
help: Information about the node reference of a machine.
574583
each:

hack/observability/kube-state-metrics/metrics/machine.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@
8787
address:
8888
- address
8989
type: Info
90+
- name: status_certificatesexpirydate
91+
help: Information about certificate expiration date of a control plane node.
92+
each:
93+
gauge:
94+
nilIsZero: true
95+
path:
96+
- status
97+
- certificatesExpiryDate
98+
type: Gauge
9099
- name: status_noderef
91100
help: Information about the node reference of a machine.
92101
each:

0 commit comments

Comments
 (0)