I'm using Prometheus to scrape einpoints on K8s. It works so far perfectly but only for one endpoint returns 401.
I have tried wget inside of the prometheus container and it works:
/prometheus $ wget http://10.xx.xx.xx:8080/metrics Connecting to 10.xx.xx.xx:8080 (10.xx.xx.xx:8080) saving to 'metrics' metrics 100% |********************************| 19803 0:00:00 ETA 'metrics' saved
Does anyone have idea about the reason and the solution?