Prometheus error on ingesting samples with different value but same timestamp errors due to pathType in ingress

Solution Verified - Updated -

Issue

  • Getting alert Prometheus error on ingesting samples with different value but same timestamp errors due to ingress having pathType not recognised as a unique value.

    ts=2025-04-02T11:53:58.521Z caller=scrape.go:1783 level=debug component="scrape manager" scrape_pool=serviceMonitor/openshift-monitoring/kube-state-metrics/0 target=https://172.000.000.000:8443/metrics msg="Duplicate sample for timestamp" series="kube_ingress_path{namespace=\"abc-abc\",ingress=\"abc-abc-cart\",host=\"www.abc-abc.abc.com\",path=\"/abc/abc\",service_name=\"cart\",service_port=\"3000\"}"
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.16+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content