User workload prometheus showing errors scrapping serviceMonitor
Issue
- user workload prometheus is showing the following errors while scrapping serviceMonitor and showing a port that is not the metrics port:
2023-08-31T17:48:22.107699809+05:30 ts=2023-08-31T12:18:22.107Z caller=scrape.go:1328 level=debug component="scrape manager" scrape_pool=serviceMonitor/ns1/prometheus-example-monitor/0 target=http://10<ip address>:<port>/metrics msg="Scrape failed" err="server returned HTTP status 404 NOT FOUND"
Environment
- Red Hat Openshift Container Platform 4.X
- User workload monitoring enabled.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.