Duplicate sample for ingress path metrics #2445
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened:
After upgrading Prometheus to 2.52, we started receiving warnings about duplicate metrics, which were ultimately tied to kube-state-metrics. There are a couple forms of this, most of which area already reported in other tickets (#2405, #2408, #2390), but this is a different variation.
The metric
kube_ingress_path
is resulting in duplicates. In our case, we do have ingress path entries which are completely redundant (the result of some shoddy helm templates), but it's still a legal Kubernetes state resulting in illegal Prometheus scrape results.What you expected to happen:
Either the data is de-duplicated, or the duplicates are somehow differentiated (with an index, perhaps).
How to reproduce it (as minimally and precisely as possible):
Create an ingress with duplicate paths, then create metrics for it with kube-state-metrics.
Anything else we need to know?:
Environment:
kubectl version
): 1.28.9The text was updated successfully, but these errors were encountered: