-
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
Duplicate tolerations causing issue with prometheus >= 2.52.0 #2390
Comments
/assign |
Quoting yourself from the issue you opened against Kubernetes:
This is also what I would expect to be in the kube-apiserver. I don't think we should handle this scenario at kube-state-metrics' level since the object data is erroneous. I am closing this issue in favor of the Kubernetes one. Feel free to reopen if the Kubernetes maintainers think we should handle this scenario here. |
kubernetes/kubernetes#124881 (comment) seems this got bounced back here @dgrisonnet |
@RiRa12621: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this: 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. |
Thanks for the heads up @RiRa12621 :) /reopen /unassign If anyone is interested in contributing the logic to make sure that there are only unique tolerations, feel free to self-assign the issue and draft a PR. |
@dgrisonnet: Reopened this issue. In response to this:
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. |
/assign @RiRa12621 This takes all tolerations, only gets the unique ones and then the regular logic is applied to those. |
What happened:
Starting with version 2.52.0, Prometheus introduced a mechanism to detect duplicate series during scraping. This can lead to error logs when kube-state-metrics scrapes metrics for deployments, particularly if there are duplicate entries within the toleration array.
prometheus debug logs:
There might be a need to deduplicate the toleration entries or add an index to entries with existing duplicates.
How to reproduce it (as minimally and precisely as possible):
create the following deployment and look at the metrics produced by kube-state-metrics
Anything else we need to know?:
Issue report I opened on the prometheus project prometheus/prometheus#14089
Environment:
kubectl version
): 1.27.9The text was updated successfully, but these errors were encountered: