server returned HTTP status 401 Unauthorized with valid serviceaccount token #2464
Unanswered
shubhjoshi-dgs
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Running below command gives me metrics for specific job but when the same bearer token is getting used in scrape job throws "server returned HTTP status 401 Unauthorized" error with target down.
This command with same token used gives me all the metrics - curl -k -H "Authorization: Bearer $(cat /etc/prometheus/app-cluster/token/token.json)" https://10.69.192.16:10250/metrics
I have attached the prometheus config.
Also, only below targets (jobs) are failing:-
this is working:-
global.txt
Beta Was this translation helpful? Give feedback.
All reactions