-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat: Move endpoint ports into address metric #2503
Conversation
/lgtm |
Do we need to add this breaking change into release notes later? |
Yes, I'll make sure it's part of the changelog of the next release. |
/lgtm |
/triage accepted |
@rexagod @dgrisonnet are you okay with this? Then I'll start adjusting the tests. |
What was the preference for empty labels again? Omit them? e.g. port_name in this metric:
We keep it in kube_endpoint_ports. |
Thanks! This is now ready for review. |
This marks kube_endpoint_ports as deprecated
/lgtm Thank you for all the great work, not just this PR, but everything! 🙇 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CatherineF-dev, mrueg, rexagod 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 |
* [bot] [main] Automated version update * Drops kube_endpoint_ports metric from KSM due to kubernetes/kube-state-metrics#2503 --------- Co-authored-by: Prometheus Operator Bot <[email protected]>
What this PR does / why we need it:
This moves the labels from kube_endpoint_ports int kube_endpoint_address (as the subset in an endpoint can contain multiple addresses and ports that need to be linked together)
This change also marks kube_endpoint_ports as deprecated
Fixes #2408
How does this change affect the cardinality of KSM: (increases, decreases or does not change cardinality)
This change creates
ports * addresses
metrics instead ofports + addresses
metrics.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 #2408
I will fix tests later once we have an agreement to move forward like this.