kube-state-metrics icon indicating copy to clipboard operation
kube-state-metrics copied to clipboard

fix(customresourcestate): generate unique HELP message for each family

Open Duologic opened this issue 8 months ago • 6 comments

What this PR does / why we need it:

The family generator creates a family per GVK, this requires that the configuration has a unique HELP text per custom metric. This is not feasible when using wildcards as the generate will reuse the same HELP text for each GVK it finds.

How does this change affect the cardinality of KSM: (increases, decreases or does not change cardinality)

It does not change cardinality but does change the HELP text on metrics generated by CustomResourceState.

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

Duologic avatar Mar 24 '25 13:03 Duologic

This issue is currently awaiting triage.

If kube-state-metrics contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Mar 24 '25 13:03 k8s-ci-robot

/assign @rexagod

mrueg avatar Mar 28 '25 10:03 mrueg

/lgtm

CatherineF-dev avatar Mar 31 '25 01:03 CatherineF-dev

@rexagod Anything I can do to help here?

Duologic avatar Apr 15 '25 12:04 Duologic

New changes are detected. LGTM label has been removed.

k8s-ci-robot avatar May 13 '25 13:05 k8s-ci-robot

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CatherineF-dev, Duologic

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

The pull request process is described 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 avatar May 13 '25 13:05 k8s-ci-robot

@rexagod Anything I can help to get this merged?

Duologic avatar Jun 18 '25 12:06 Duologic

change looks pretty straight forward.

@Duologic can you push again to trigger CI? for some reason it didn't run.

@rexagod any thoughts?

mrueg avatar Aug 15 '25 18:08 mrueg

rebased.

Duologic avatar Aug 21 '25 14:08 Duologic

rebased and fixed unit test

Duologic avatar Aug 27 '25 22:08 Duologic

@rexagod @mrueg Can y'all have a look what needs to happen for this PR?

Duologic avatar Nov 16 '25 09:11 Duologic

@CatherineF-dev @rexagod @mrueg The review cycle for this PR has been very long, can I do something to speed that up?

Duologic avatar Dec 01 '25 15:12 Duologic