Skip to content

Commit

Permalink
Merge pull request #9084 from chrischdi/pr-ksm-machine-cert-expiry
Browse files Browse the repository at this point in the history
🌱 hack/observability: add capi_machine_status_certificatesexpirydate metric
  • Loading branch information
k8s-ci-robot authored Aug 7, 2023
2 parents 77935f6 + f585a8c commit 50ecbae
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hack/observability/kube-state-metrics/crd-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,15 @@ spec:
address:
- address
type: Info
- name: status_certificatesexpirydate
help: Information about certificate expiration date of a control plane node.
each:
gauge:
nilIsZero: true
path:
- status
- certificatesExpiryDate
type: Gauge
- name: status_noderef
help: Information about the node reference of a machine.
each:
Expand Down
9 changes: 9 additions & 0 deletions hack/observability/kube-state-metrics/metrics/machine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@
address:
- address
type: Info
- name: status_certificatesexpirydate
help: Information about certificate expiration date of a control plane node.
each:
gauge:
nilIsZero: true
path:
- status
- certificatesExpiryDate
type: Gauge
- name: status_noderef
help: Information about the node reference of a machine.
each:
Expand Down

0 comments on commit 50ecbae

Please sign in to comment.