Kubernetes Endpoints Returns 401

20 views
Skip to first unread message

Haochi Xiangjiao

unread,
Mar 18, 2020, 9:22:23 AM3/18/20
to Prometheus Users

endpoints.PNG

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?
Reply all
Reply to author
Forward
0 new messages