I’m trying to scrape the services published by Ingress.
kubectl get ingress
NAME CLASS HOSTS ADDRESS PORTS AGE
myhttp myservice.local 10.195.75.141 80 17h
But Prometheus returns “server returned HTTP status 503 Service Temporarily Unavailable”.
I can fetch metrics from “http://myservice.local/metrics” with curl command.
It is caused that Prometheus adds “:80” to Host header automatically.
The ingress controller in my environment can’t strip “:80”, so I can’t scrape it.
Could anyone please give me some advise?