Skip to content

🌱 update metrics configuration to v1beta2 #12642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chrischdi
Copy link
Member

What this PR does / why we need it:

Updates the metrics configuration to use the v1beta2 api version instead of v1beta1.

Small adjustments to metrics:

  • Added ClusterClass classref namespace metric (capi_clusterclass_spec_topology_classref_namespace)
  • renamed capi_clusterclass_spec_topology_class to capi_clusterclass_spec_topology_classref_name
  • dropped metrics related to .Status.UnavailableReplicas (deprecated)
  • dropped metrics related to .Status.UpdatedReplicas
  • Added metrics for .Status.UpToDateReplicas
  • MHC: removed label maxUnhealthy, added remediation_triggerif_unhealthylessthanorequalto and remediation_triggerif_unhealthyrange

Adjustments to dashboards:

  • For KCP and MD: use uptodate metric instead of updated

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):

Part of:

/area ci

@k8s-ci-robot k8s-ci-robot added area/ci Issues or PRs related to ci cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 15, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign chrischdi for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 15, 2025
@chrischdi chrischdi added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Aug 15, 2025
@chrischdi chrischdi changed the title 🌱 update metrics configuration to v1beta2 🌱 [WIP] update metrics configuration to v1beta2 Aug 15, 2025
@chrischdi
Copy link
Member Author

/hold

Want to verify locally

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 15, 2025
@chrischdi chrischdi changed the title 🌱 [WIP] update metrics configuration to v1beta2 🌱 update metrics configuration to v1beta2 Aug 15, 2025
@chrischdi
Copy link
Member Author

verified locally.

/assign @sbueringer

@sbueringer
Copy link
Member

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 18, 2025
@@ -2,9 +2,9 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kube-state-metrics-custom-resource-capi
labels:
kube-state-metrics/aggregate-to-manager: "true"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was intentional, right?

- spec
- remediation
- triggerIf
- unhealthyRange
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be unhealthyInRange (same for metric name)

@@ -234,7 +230,13 @@ spec:
topology_class:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not match the PR description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci Issues or PRs related to ci cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants