Duplicate tolerations causing issue with prometheus >= 2.52.0 #2390
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
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: